ci: added freebsd version

This commit is contained in:
nadoo committed 2021-04-19 10:39:40 +08:00
1 parent 2d16870803
commit 2a7eed7667
11 files changed
+34 -25

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ func NewTrojan(s string, d proxy.Dialer, p proxy.Proxy) (*Trojan, error) {
// fallback: "127.0.0.1:80",
}
if _, p, _ := net.SplitHostPort(t.addr); p == "" {
if _, port, _ := net.SplitHostPort(t.addr); port == "" {
t.addr = net.JoinHostPort(t.addr, "443")
}