aboutsummaryrefslogtreecommitdiff
path: root/gemini-from-http/proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'gemini-from-http/proxy.py')
-rwxr-xr-xgemini-from-http/proxy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gemini-from-http/proxy.py b/gemini-from-http/proxy.py
index 8a4ba85..ca4846c 100755
--- a/gemini-from-http/proxy.py
+++ b/gemini-from-http/proxy.py
@@ -70,8 +70,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:
+ socketserver.ThreadingTCPServer.allow_reuse_address = True
+ with socketserver.ThreadingTCPServer((args.host, args.port), Handler) as server:
server.serve_forever()