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) {