better error message with wrong password
This commit is contained in:
parent
34843c6a91
commit
9b3f608a62
2 changed files with 4 additions and 4 deletions
|
@ -141,8 +141,8 @@ class Socks5Server(SocketServer.StreamRequestHandler):
|
|||
addr = socket.inet_ntop(socket.AF_INET6, addr_ip)
|
||||
addr_to_send += addr_ip
|
||||
else:
|
||||
logging.warn('addr_type not support')
|
||||
# not support
|
||||
logging.warn('addr_type not supported')
|
||||
# not supported
|
||||
return
|
||||
addr_port = self.rfile.read(2)
|
||||
addr_to_send += addr_port
|
||||
|
|
|
@ -110,8 +110,8 @@ class Socks5Server(SocketServer.StreamRequestHandler):
|
|||
addr = socket.inet_ntop(socket.AF_INET6,
|
||||
self.decrypt(self.rfile.read(16)))
|
||||
else:
|
||||
# not support
|
||||
logging.warn('addr_type not support')
|
||||
# not supported
|
||||
logging.warn('addr_type not supported, maybe wrong password')
|
||||
return
|
||||
port = struct.unpack('>H', self.decrypt(self.rfile.read(2)))
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue