mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
general: minor changes in github actions and codes
This commit is contained in:
1 parent
855907c46b
commit
a4346d2b03
9 files changed
+58
-54
No files matched your search
+1
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user