mirror of https://github.com/v2ray/v2ray-core
temporary workaround for Tor command in socks.
parent
9977eadf8c
commit
4f33540b19
|
@ -17,6 +17,8 @@ const (
|
|||
cmdTCPConnect = 0x01
|
||||
cmdTCPBind = 0x02
|
||||
cmdUDPPort = 0x03
|
||||
cmdTorResolve = 0xF0
|
||||
cmdTorResolvePTR = 0xF1
|
||||
|
||||
socks4RequestGranted = 90
|
||||
socks4RequestRejected = 91
|
||||
|
@ -131,7 +133,8 @@ func (s *ServerSession) Handshake(reader io.Reader, writer io.Writer) (*protocol
|
|||
|
||||
cmd := buffer.Byte(1)
|
||||
switch cmd {
|
||||
case cmdTCPConnect:
|
||||
case cmdTCPConnect, cmdTorResolve, cmdTorResolvePTR:
|
||||
// We don't have a solution for Tor case now. Simply treat it as connect command.
|
||||
request.Command = protocol.RequestCommandTCP
|
||||
case cmdUDPPort:
|
||||
if !s.config.UdpEnabled {
|
||||
|
|
Loading…
Reference in New Issue