escaped .
parent
ec4dc7fdde
commit
587c4e5256
|
@ -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
|
while IFS= read -r line; do # TODO: Do these dns lookups in parallel
|
||||||
pubkey="$(<<<${line} cut -d ' ' -f1)"
|
pubkey="$(<<<${line} cut -d ' ' -f1)"
|
||||||
ips="$(<<<${line} cut -d ' ' -f2 | tr ' ' '\n')"
|
ips="$(<<<${line} cut -d ' ' -f2 | tr ' ' '\n')"
|
||||||
ipv4="$(<<<${ips} grep '.')"
|
ipv4="$(<<<${ips} grep '\.')"
|
||||||
ipv6="$(<<<${ips} grep ':')"
|
ipv6="$(<<<${ips} grep ':')"
|
||||||
ipv4="${ipv4%%/*}"
|
ipv4="${ipv4%%/*}"
|
||||||
ipv6="${ipv6%%/*}"
|
ipv6="${ipv6%%/*}"
|
||||||
|
|
Loading…
Reference in New Issue