diff --git a/bird/bird.conf.tmpl b/bird/bird.conf.tmpl index d36a509..22a8199 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; }