Chore: make a consistent code style

This commit is contained in:
Dreamacro
2018-12-23 00:42:08 +08:00
parent cb118d4371
commit 532ec88964
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ func newWebsocketConn(conn net.Conn, c *websocketConfig) (net.Conn, error) {
dialer.TLSClientConfig = c.tlsConfig
}
host, port, err := net.SplitHostPort(c.host)
host, port, _ := net.SplitHostPort(c.host)
if (scheme == "ws" && port != "80") || (scheme == "wss" && port != "443") {
host = c.host
}