tls, trojan: use 443 as default port if not specified

This commit is contained in:
nadoo committed 2020-10-07 21:06:49 +08:00
1 parent e7ebcbcde5
commit 8495f16a76
11 files changed
+91 -127

No files matched your search

+1 -1
View File
@@ -117,7 +117,7 @@ func ReadAddrString(r io.Reader) (string, error) {
return AddrString(atyp, host, port), nil
}
// AddrString returns a addr string inf format "host:port".
// AddrString returns a addr string in format of "host:port".
func AddrString(atyp Atyp, addr Addr, port Port) string {
var host string