From e9b81b155db71b2fe7eca7cc00a0d1cc20342ae3 Mon Sep 17 00:00:00 2001 From: Nate Sales Date: Thu, 4 Mar 2021 23:54:09 -0800 Subject: [PATCH] fix kernel import filters --- templates/global.tmpl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 }}