mirror of
https://github.com/calebstewart/pwncat.git
synced 2024-11-27 19:04:15 +01:00
Added a comment about the fix
This change was not committed, possibly due to the use of testing directory
This commit is contained in:
parent
ffd7f80e0d
commit
231c76fcda
@ -42,6 +42,9 @@ class Connect(Socket):
|
||||
# then we capture the GAI (getaddrinfo) exception and raise it as ChannelError
|
||||
# so that it is handled properly by the parent methods
|
||||
|
||||
# We also try to catch ConnectionRefusedError after it
|
||||
# this is caused when a wrong port number is used
|
||||
|
||||
try:
|
||||
client = socket.create_connection((host, port))
|
||||
except socket.gaierror:
|
||||
|
Loading…
Reference in New Issue
Block a user