I have a project that requires some mapped domains to be SSL and some to be non-SSL. Currently the domain mapping plugin generates urls using the protocol of the current request, this is causing some of our non-SSL domains to be requested as SSL and vice-versa for other domains when requests are redirected from one domain to another.
I coded up a patch that optionally allows a protocol to be defined per domain. By default the original mechanism of determining the protocol is used unless a protocol is specified.
I would love for this patch to be merged so we don't have to maintain our own modification of the plugin. Let me know if anything needs to change or I overlooked something when making the patch.