Skip to content
Browse files

socks.py should use socks5errors strings when raising Socks5Error

  • Loading branch information...
1 parent 3c4bf83 commit d45b70aa75a352adebf45703a4cd4cafa95c8a7e @m0mchil m0mchil committed Feb 5, 2012
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)

0 comments on commit d45b70a

Please sign in to comment.
Something went wrong with that request. Please try again.