escaped .

master
Keith Irwin 2022-09-08 13:08:05 -06:00
parent ec4dc7fdde
commit 587c4e5256
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ user_peers="$(grep ${1%[.:]*} <<<${wg_output} 2>/dev/null)"
while IFS= read -r line; do # TODO: Do these dns lookups in parallel
pubkey="$(<<<${line} cut -d ' ' -f1)"
ips="$(<<<${line} cut -d ' ' -f2 | tr ' ' '\n')"
ipv4="$(<<<${ips} grep '.')"
ipv4="$(<<<${ips} grep '\.')"
ipv6="$(<<<${ips} grep ':')"
ipv4="${ipv4%%/*}"
ipv6="${ipv6%%/*}"