mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
lazy init of socks5 response
This commit is contained in:
parent
507da1a451
commit
1d1708ea3c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user