From 9b5b93c8a8f8c08f6e149c215963f7a483ba6a97 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Tue, 24 Nov 2020 19:59:29 -0700 Subject: [PATCH] git-daemon-verify: pick up remote_port too Go ahead and pick up the remote_port value from peek_packet and stuff it into REMOTE_PORT to go along with the other values already stuffed into REMOTE_ADDR and SERVER_ADDR and SERVER_PORT. Signed-off-by: Kyle J. McKay --- bin/git-daemon-verify | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/git-daemon-verify b/bin/git-daemon-verify index 209757b..ecff6a4 100755 --- a/bin/git-daemon-verify +++ b/bin/git-daemon-verify @@ -90,6 +90,7 @@ shift # Extract host and port now REMOTE_ADDR= +REMOTE_PORT= SERVER_ADDR= SERVER_PORT= [ "${hnam+set}" != "set" ] || unset hnam @@ -102,6 +103,7 @@ for extra in "$@"; do "server_addr="*) SERVER_ADDR="${extra#server_addr=}";; "server_port="*) SERVER_PORT="${extra#server_port=}";; "remote_addr="*) REMOTE_ADDR="${extra#remote_addr=}";; + "remote_port="*) REMOTE_PORT="${extra#remote_port=}";; esac done # Make nice hostport variable for later use -- 2.11.4.GIT