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:
Manevolent 2022-12-17 21:54:38 -07:00 committed by GitHub
parent fcc956be4a
commit 69c27149da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}