Fixed overzealous self deletion prevention

master
wgapi Cloud9 2021-10-22 12:35:02 -06:00
parent 7e30e92629
commit 12dcc3f18f
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ module.exports = async (req, res) => {
.split(' # ')[1]
const peer_ips = peer_lines
.filter( (line) => line.includes('AllowedIPs = '))[0]
.split(' = ')[1]
.split(' = ')[1].split(', ')
if (peer_pubkey===undefined) {
peer_pubkey = peer_lines
.filter( (line) => line.includes('PublicKey = ') )[0]