diff --git a/back/lib/wg_peer_list b/back/lib/wg_peer_list index 2bd205e..e9a6209 100755 --- a/back/lib/wg_peer_list +++ b/back/lib/wg_peer_list @@ -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%%/*}"