From e6f049da4bba9b8168fdad35ac9e6377d690c1fe Mon Sep 17 00:00:00 2001 From: numzero Date: Sun, 3 May 2026 00:19:19 +0300 Subject: [PATCH] fix SECURITY bug with local address not being used --- server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.sh b/server.sh index 9c002cf..db4860c 100755 --- a/server.sh +++ b/server.sh @@ -31,7 +31,7 @@ handle() { response_pipe="$tmpdir/response-$connection_id.pipe" event_pipe="$tmpdir/event-$connection_id.pipe" mkfifo -m 0600 "$response_pipe" "$event_pipe" - gnetcat -c -l "$ADDR" -p "$PORT" < "$response_pipe" | sed -E -u 's/\r$//' | ( + gnetcat --listen --source "$ADDR" --local-port "$PORT" --close < "$response_pipe" | sed -E -u 's/\r$//' | ( read method url version || { echo "Connection broken" > "$event_pipe" exit