mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-06 00:39:44 +01:00
Merge pull request #1364 from scottj/3.0
fix bug in f5_ip_oldstyle() printf format string
This commit is contained in:
commit
cbf6422221
@ -1367,7 +1367,7 @@ f5_ip_oldstyle() {
|
|||||||
local a b c d
|
local a b c d
|
||||||
|
|
||||||
tmp="${1/%.*}" # until first dot
|
tmp="${1/%.*}" # until first dot
|
||||||
tmp="$(printf "%x8" "$tmp")" # convert the whole thing to hex, now back to ip (reversed notation:
|
tmp="$(printf "%08x" "$tmp")" # convert the whole thing to hex, now back to ip (reversed notation:
|
||||||
tmp="$(f5_hex2ip $tmp)" # transform to ip with reversed notation
|
tmp="$(f5_hex2ip $tmp)" # transform to ip with reversed notation
|
||||||
IFS="." read -r a b c d <<< "$tmp" # reverse it
|
IFS="." read -r a b c d <<< "$tmp" # reverse it
|
||||||
echo $d.$c.$b.$a
|
echo $d.$c.$b.$a
|
||||||
|
Loading…
Reference in New Issue
Block a user