mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-05 09:54:06 +08:00
⛄ Sync 2026-09-23 11:01:39
This commit is contained in:
1 parent
a8c6f9b0fc
commit
0b87d429f8
9 files changed
+96
-31
No files matched your search
@@ -250,11 +250,11 @@ return baseclass.extend({
|
||||
},
|
||||
|
||||
clientAddresses(hint) {
|
||||
const ipv4 = L.toArray(hint?.ipaddrs || hint?.ipv4);
|
||||
const ipv4 = L.toArray(hint?.ipaddrs || hint?.ipv4).find(Boolean);
|
||||
const ipv6 = L.toArray(hint?.ip6addrs || hint?.ipv6)
|
||||
.filter(address => !/^fe[89ab][0-9a-f]:/i.test(address));
|
||||
.find(address => address && !/^fe[89ab][0-9a-f]:/i.test(address));
|
||||
|
||||
return Array.from(new Set(ipv4.concat(ipv6).filter(Boolean)));
|
||||
return [ ipv4, ipv6 ].filter(Boolean);
|
||||
},
|
||||
|
||||
renderUpdateData(radios, networks, hosthints) {
|
||||
|
||||
Reference in new issue
Block a user