diff --git a/proxy/shadowsocks/client.go b/proxy/shadowsocks/client.go index 7308d432a..02509d58d 100644 --- a/proxy/shadowsocks/client.go +++ b/proxy/shadowsocks/client.go @@ -61,6 +61,8 @@ func (this *Client) Dispatch(destination v2net.Destination, payload *alloc.Buffe } log.Info("Shadowsocks|Client: Tunneling request to ", destination, " via ", server.Destination()) + conn.SetReusable(false) + request := &protocol.RequestHeader{ Version: Version, Address: destination.Address, diff --git a/proxy/shadowsocks/server.go b/proxy/shadowsocks/server.go index b2ef0cf0a..8402adb74 100644 --- a/proxy/shadowsocks/server.go +++ b/proxy/shadowsocks/server.go @@ -146,6 +146,7 @@ func (this *Server) handlerUDPPayload(payload *alloc.Buffer, session *proxy.Sess func (this *Server) handleConnection(conn internet.Connection) { defer conn.Close() + conn.SetReusable(false) timedReader := v2net.NewTimeOutReader(16, conn) defer timedReader.Release()