Menu

#3 Fix wrong Socks5Error error messages

open
nobody
None
5
2009-04-17
2009-04-17
Anonymous
No

@@ -233,9 +233,9 @@
# 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)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB