mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-17 22:57:10 +00:00
lazy init of socks5 response
This commit is contained in:
1 parent
507da1a451
commit
1d1708ea3c
1 file changed
+1
-2
@@ -128,12 +128,11 @@ func (server *SocksServer) handleSocks5(reader *v2net.TimeOutReader, writer io.W
|
||||
return err
|
||||
}
|
||||
|
||||
response := protocol.NewSocks5Response()
|
||||
|
||||
if request.Command == protocol.CmdUdpAssociate && server.config.UDPEnabled {
|
||||
return server.handleUDP(reader, writer)
|
||||
}
|
||||
|
||||
response := protocol.NewSocks5Response()
|
||||
if request.Command == protocol.CmdBind || request.Command == protocol.CmdUdpAssociate {
|
||||
response := protocol.NewSocks5Response()
|
||||
response.Error = protocol.ErrorCommandNotSupported
|
||||
|
||||
Reference in new issue
Block a user