aboutsummaryrefslogtreecommitdiff
path: root/proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'proxy.py')
-rwxr-xr-xproxy.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/proxy.py b/proxy.py
index e5e0916..b3411ca 100755
--- a/proxy.py
+++ b/proxy.py
@@ -68,6 +68,8 @@ def main():
global proxied_hosts
proxied_hosts = args.proxied_host
+
+ socketserver.TCPServer.allow_reuse_address = True
with socketserver.TCPServer((args.host, args.port), Handler) as server:
server.serve_forever()