mirror of
https://github.com/9001/copyparty.git
synced 2026-11-15 06:58:22 +00:00
support location-based rproxy
This commit is contained in:
1 parent
02ad4bfab2
commit
db194ab519
21 files changed
+147
-86
No files matched your search
@@ -178,11 +178,6 @@ class HttpSrv(object):
|
||||
def listen(self, sck: socket.socket, nlisteners: int) -> None:
|
||||
if self.args.j != 1:
|
||||
# lost in the pickle; redefine
|
||||
try:
|
||||
sck.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
|
||||
except:
|
||||
pass
|
||||
|
||||
if not ANYWIN or self.args.reuseaddr:
|
||||
sck.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
|
||||
|
||||
Reference in new issue
Block a user