Fixed overzealous self deletion prevention
parent
7e30e92629
commit
12dcc3f18f
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue