From c92435c2d21fc69f07d6d43029802c116c24eb80 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 17 Sep 2026 21:53:50 +0000 Subject: [PATCH] add -i no --- copyparty/__main__.py | 1 + copyparty/tcpsrv.py | 3 +++ scripts/bench/filehash.sh | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/copyparty/__main__.py b/copyparty/__main__.py index 9a19e61ef..134e392a6 100644 --- a/copyparty/__main__.py +++ b/copyparty/__main__.py @@ -687,6 +687,7 @@ def get_sects(): \033[32m-i 127.0.0.1\033[0m listens on IPv4 localhost only \033[32m-i 127.1\033[0m listens on IPv4 localhost only \033[32m-i 127.1,192.168.123.1\033[0m = IPv4 localhost and 192.168.123.1 + \033[32m-i no\033[0m disable webserver \033[33m-p\033[0m takes a comma-separated list of tcp ports to listen on; the default is \033[32m-p 3923\033[0m but as root you can \033[32m-p 80,443,3923\033[0m diff --git a/copyparty/tcpsrv.py b/copyparty/tcpsrv.py index 3c523ba5c..c59327210 100644 --- a/copyparty/tcpsrv.py +++ b/copyparty/tcpsrv.py @@ -87,6 +87,9 @@ class TcpSrv(object): successful_binds = 0 try: for ipa in ips: + if ipa == "no": + self.args.ign_ebind_all = True + continue try: self._listen(ipa, port) ok[ipa].append(port) diff --git a/scripts/bench/filehash.sh b/scripts/bench/filehash.sh index 5a5f4c985..40fc3a7fe 100755 --- a/scripts/bench/filehash.sh +++ b/scripts/bench/filehash.sh @@ -49,7 +49,7 @@ echo warming up cache cat 1 >/dev/null echo ok lets go -$pybin "$sfx" -p39204 -e2dsa --dbd=yolo --exit=idx -lo=t -q "$@" && err= || err=$? +$pybin "$sfx" -i no -e2dsa --dbd=yolo --exit=idx -lo=t -q "$@" && err= || err=$? [ $win ] && [ $err = 15 ] && err= # sigterm doesn't hook on windows, ah whatever [ $err ] && echo ERROR $err && exit $err