fix #344 FQDN with non-standard ports broken