Skip to content

Commit

Permalink
Merge pull request #4 from TheBrokenRail/patch-3
Browse files Browse the repository at this point in the history
Fix Unbound Local Error
  • Loading branch information
nobody5050 authored Jan 11, 2021
2 parents 14ebb61 + 420363e commit 24d9072
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def run(self):
proc_addr = socket.gethostbyname_ex(self.__options["src_addr"])[2][0]
except socket.gaierror:
print("Error: Invalid address.");
return 1;
src_addr = (proc_addr, self.__options["src_port"]);
client_addr = None;
self.__running = True;
Expand Down

0 comments on commit 24d9072

Please sign in to comment.