Fixed error
parent
d036321119
commit
a362dfb763
|
@ -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++
|
||||
|
|
Loading…
Reference in New Issue