1
0
mirror of https://github.com/calebstewart/pwncat.git synced 2024-11-24 01:25:37 +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:
Mitul16 2021-06-18 18:12:28 +05:30
parent ffd7f80e0d
commit 231c76fcda

View File

@ -42,6 +42,9 @@ class Connect(Socket):
# then we capture the GAI (getaddrinfo) exception and raise it as ChannelError # then we capture the GAI (getaddrinfo) exception and raise it as ChannelError
# so that it is handled properly by the parent methods # 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: try:
client = socket.create_connection((host, port)) client = socket.create_connection((host, port))
except socket.gaierror: except socket.gaierror: