mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
conn: change TCPBufSize to 32K as the golang standard lib did
This commit is contained in:
1 parent
cd78995cd4
commit
904757052d
7 files changed
+31
-52
No files matched your search
+1
-2
@@ -5,7 +5,6 @@ import (
|
||||
"crypto/rand"
|
||||
"crypto/sha1"
|
||||
"encoding/base64"
|
||||
"net"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
@@ -51,7 +50,7 @@ func NewWS(s string, d proxy.Dialer, p proxy.Proxy) (*WS, error) {
|
||||
}
|
||||
|
||||
if w.host == "" {
|
||||
w.host, _, _ = net.SplitHostPort(addr)
|
||||
w.host = addr
|
||||
}
|
||||
|
||||
if w.path == "" {
|
||||
|
||||
Reference in new issue
Block a user