From a362dfb76379e2d7f020667e6d2994b5a73309ad Mon Sep 17 00:00:00 2001 From: wgapi Cloud9 Date: Wed, 20 Oct 2021 10:07:34 -0600 Subject: [PATCH] Fixed error --- app/add.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/add.js b/app/add.js index fad55eb..351b63d 100644 --- a/app/add.js +++ b/app/add.js @@ -44,7 +44,7 @@ module.exports = async (req, res) => { .map((host) => host.ipv4).map((found_ipv4) => found_ipv4.toString().split('.')[3].split('/')[0]) const used_ipv6_hosts = user.peers - .map(() => host.ipv6).map((found_ipv6) => + .map((host) => host.ipv6).map((found_ipv6) => found_ipv6.toString().split(':')[3].split('/')[0]) let host = 1 while ([...used_ipv4_hosts,...used_ipv6_hosts].includes(host.toString())) host++