From 69c27149da6b3e21c6a2fe8a3f4566f76aac55dc Mon Sep 17 00:00:00 2001 From: Manevolent Date: Sat, 17 Dec 2022 21:54:38 -0700 Subject: [PATCH] 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. --- bird/bird.conf.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bird/bird.conf.tmpl b/bird/bird.conf.tmpl index 22a8199..d36a509 100644 --- a/bird/bird.conf.tmpl +++ b/bird/bird.conf.tmpl @@ -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; }