diff --git a/bird/bird.conf.tmpl b/bird/bird.conf.tmpl index e372d9c..54a2518 100644 --- a/bird/bird.conf.tmpl +++ b/bird/bird.conf.tmpl @@ -42,8 +42,8 @@ function is_lixonet_router() function is_own_route() { - {{ if len "${routes:-}" }}{{ range "$routes" | split "," }}if net ~ [ {{.}}+ ] then return true;{{ end }} - {{ end }} + {{ if len "${routes:-}" }}{{ range "$routes" | split "," }}if net ~ [ {{.}}+ ] then return true; + {{ end }}{{ end }} return false; }