general: minor changes in github actions and codes

This commit is contained in:
nadoo committed 2020-04-06 23:33:23 +08:00
1 parent 855907c46b
commit a4346d2b03
9 files changed
+58 -54

No files matched your search

+1 -2
View File
@@ -39,8 +39,7 @@ func NewWS(s string, d proxy.Dialer) (*WS, error) {
addr = d.Addr()
}
query := u.Query()
host := query.Get("host")
host := u.Query().Get("host")
if host == "" {
colonPos := strings.LastIndex(addr, ":")
if colonPos == -1 {