Fixed error

master
wgapi Cloud9 2021-10-20 10:07:34 -06:00
parent d036321119
commit a362dfb763
1 changed files with 1 additions and 1 deletions

View File

@ -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++