Set the ssl flag correctly on the tunnel depending on the URL we are proxying.