Remove "+" from wireguard route check
This will prevent lixonet from sharing exact addresses like 172.31.1.16 (etc.), which might take precedence over actual Wireguard routes. The plan is to have Wireguard's metric for the 1.x/24s be lower (or whatever is needed) so that it is always preferred when traffic reaches a wg-enabled host.
This commit is contained in:
parent
fcc956be4a
commit
69c27149da
@ -93,7 +93,7 @@ function is_own_route_v4()
|
||||
|
||||
function is_wireguard_route_v4()
|
||||
{
|
||||
{{ if len "${wg_routes:-}" }}{{ range "$wg_routes" | split "," }}if net ~ [ {{.}}+ ] then return true;
|
||||
{{ if len "${wg_routes:-}" }}{{ range "$wg_routes" | split "," }}if net ~ [ {{.}} ] then return true;
|
||||
{{ end }}{{ end }}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user