Fixes #3001, Check the protocol of the webgui to determine if https is being used for custom ports.