Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

socks.py should use socks5errors strings when raising Socks5Error

  • Loading branch information...
commit d45b70aa75a352adebf45703a4cd4cafa95c8a7e 1 parent 3c4bf83
@m0mchil authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 socks.py
View
4 socks.py
@@ -233,9 +233,9 @@ def __negotiatesocks5(self,destaddr,destport):
# Connection failed
self.close()
if ord(resp[1])<=8:
- raise Socks5Error(ord(resp[1]),_generalerrors[ord(resp[1])])
+ raise Socks5Error(ord(resp[1]),_socks5errors[ord(resp[1])])
else:
- raise Socks5Error(9,_generalerrors[9])
+ raise Socks5Error(9,_socks5errors[9])
# Get the bound address/port
elif resp[3] == "\x01":
boundaddr = self.__recvall(4)
Please sign in to comment.
Something went wrong with that request. Please try again.