diff --git a/templates/global.tmpl b/templates/global.tmpl index b9b7c255..b370c8b5 100644 --- a/templates/global.tmpl +++ b/templates/global.tmpl @@ -61,12 +61,12 @@ protocol kernel { {{ if .PrefSrc4 -}} if source = RTS_STATIC then { accept; - } else if source = RTS_BGP { + } + if source = RTS_BGP { krt_prefsrc = {{ .PrefSrc4 }}; accept; - } else { - reject; } + reject; {{ else }} accept; {{ end }} @@ -82,12 +82,12 @@ protocol kernel { {{ if .PrefSrc6 -}} if source = RTS_STATIC then { accept; - } else if source = RTS_BGP { + } + if source = RTS_BGP { krt_prefsrc = {{ .PrefSrc6 }}; accept; - } else { - reject; } + reject; {{ else }} accept; {{ end }}