mirror of https://github.com/aredn/aredn.git
Fix check for whether wireguard tunnels are up (#1469)
This commit is contained in:
parent
ad07fb2148
commit
861e299251
|
@ -220,7 +220,7 @@ uciMesh.foreach("vtun", "server", a => {
|
|||
network: a.netip,
|
||||
passwd: a.passwd,
|
||||
weight: a.weight ?? "",
|
||||
up: wireguard ? (length(filter(up.wg, v => index(a.key, v) !== -1)) === 0 ? false : true) : (up.lg[a.netip] ? true : false)
|
||||
up: wireguard ? (length(filter(up.wg, v => index(a.passwd, v) !== -1)) === 0 ? false : true) : (up.lg[a.netip] ? true : false)
|
||||
});
|
||||
delete available.l[a.clientip];
|
||||
delete available.w[a.clientip];
|
||||
|
|
Loading…
Reference in New Issue