mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
general: remove unnecessary SetKeepAlive
This commit is contained in:
1 parent
6cdfbc3552
commit
1f8a3cdf53
7 files changed
+2
-25
No files matched your search
@@ -98,10 +98,6 @@ func (s *SSR) Dial(network, addr string) (net.Conn, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if c, ok := c.(*net.TCPConn); ok {
|
||||
c.SetKeepAlive(true)
|
||||
}
|
||||
|
||||
ssrconn := shadowsocksr.NewSSTCPConn(c, cipher)
|
||||
if ssrconn.Conn == nil || ssrconn.RemoteAddr() == nil {
|
||||
return nil, errors.New("[ssr] nil connection")
|
||||
|
||||
Reference in new issue
Block a user