Allow BIRD to import specific Wireguard prefixes (i.e. /32) again

This commit is contained in:
Manevolent 2022-12-21 19:10:39 -07:00 committed by GitHub
parent 25d22054f4
commit 871c55114a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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