Fixed bug where the client would ignore provided port if ssl was also enabled