mirror of https://github.com/v2ray/v2ray-core
lazy init of socks5 response
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…
Reference in New Issue