From caa4777994e977016fd5471ef17bd9a1a5ed14f5 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Mon, 3 Oct 2022 12:51:40 -0600 Subject: [PATCH] Await logging response --- back/lib/ips_to_peers_rxfr | 2 +- front/admin.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/back/lib/ips_to_peers_rxfr b/back/lib/ips_to_peers_rxfr index 4ff9e62..0e82e57 100755 --- a/back/lib/ips_to_peers_rxfr +++ b/back/lib/ips_to_peers_rxfr @@ -44,4 +44,4 @@ while IFS= read -r line; do *) printf 'ERROR! Invalid format for %s: %s\n' "${0}" "${format}" >>"${LOGFILE}" exit 5; esac -done | sed 's/\n//g' | sed 's/,$//' # Remove trailing comma and newline +done | sed 's/\n//g' | sed 's/,$//' # Remove trailing comma and newlines diff --git a/front/admin.js b/front/admin.js index bfde110..c3c38a5 100644 --- a/front/admin.js +++ b/front/admin.js @@ -35,7 +35,7 @@ function PeerList() { if (res.status) console.log(res.status) alert('Failed to contact API and load peers list. Check your wireguard connection. ') } else { - console.log(res.text()) + console.log(await res.text()) let user; try { user = await res.json() } catch (err) {