move patch from multiDomain to initHttpTunnel, for chwala in the roundcube client