From: Christopher Faulet Date: Mon, 25 Nov 2024 20:57:27 +0000 (+0100) Subject: DEV: lags/show-sess-to-flags: Properly handle fd state on server side X-Git-Tag: v3.1.0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ceb80aed579bab9d8db38aa87790bc04b5c9767a;p=thirdparty%2Fhaproxy.git DEV: lags/show-sess-to-flags: Properly handle fd state on server side It must be handled as an hexadecimal value. --- diff --git a/dev/flags/show-sess-to-flags.sh b/dev/flags/show-sess-to-flags.sh index 79003a4f25..29d09b7b76 100755 --- a/dev/flags/show-sess-to-flags.sh +++ b/dev/flags/show-sess-to-flags.sh @@ -195,7 +195,7 @@ while read -r; do ! [[ "$REPLY" =~ [[:blank:]]h2c.*\.flg=([0-9a-fx]*) ]] || append_flag b.h2c.flg h2c "${BASH_REMATCH[1]}" elif [ $ctx = cob ]; then ! [[ "$REPLY" =~ [[:blank:]]flags=([0-9a-fx]*) ]] || append_flag b.co.flg conn "${BASH_REMATCH[1]}" - ! [[ "$REPLY" =~ [[:blank:]]fd.state=([0-9a-fx]*) ]] || append_flag b.co.fd.st fd "${BASH_REMATCH[1]}" + ! [[ "$REPLY" =~ [[:blank:]]fd.state=([0-9a-fx]*) ]] || append_flag b.co.fd.st fd 0x"${BASH_REMATCH[1]}" elif [ $ctx = res ]; then ! [[ "$REPLY" =~ [[:blank:]]\(f=([0-9a-fx]*) ]] || append_flag res.flg chn "${BASH_REMATCH[1]}" ! [[ "$REPLY" =~ [[:blank:]]an=([0-9a-fx]*) ]] || append_flag res.ana ana "${BASH_REMATCH[1]}"