Merge pull request #2578 from drwetter/fix_f5_short_rfc1918.3.0

Fix F5 cookie in 10.x.x.x.  (3.0)
This commit is contained in:
Dirk Wetter 2024-10-13 10:50:19 +02:00 committed by GitHub
commit d248451340
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3001,7 +3001,7 @@ sub_f5_bigip_check() {
[[ -z "$cookievalue" ]] && break
cookievalue=${cookievalue/;/}
debugme echo $cookiename : $cookievalue
if grep -Eq '[0-9]{9,10}\.[0-9]{3,5}\.0000' <<< "$cookievalue"; then
if grep -Eq '[0-9]{8,10}\.[0-9]{3,5}\.0000' <<< "$cookievalue"; then
ip="$(f5_ip_oldstyle "$cookievalue")"
port="$(f5_port_decode $cookievalue)"
out "${spaces}F5 cookie (default IPv4 pool member): "; pr_italic "$cookiename "; prln_svrty_medium "${ip}:${port}"