From 587c4e5256dc32c379c05a3e324e97c21629d008 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Thu, 8 Sep 2022 13:08:05 -0600 Subject: [PATCH] escaped . --- back/lib/wg_peer_list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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%%/*}"