Skip to content

Commit

Permalink
fix kernel import filters
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Mar 5, 2021
1 parent a7bfaa4 commit 9853b86
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions templates/global.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,11 @@ protocol kernel {
{{ if .PrefSrc4 -}}
if source = RTS_STATIC then {
accept;
} else if source = RTS_BGP {
} else if source = RTS_BGP then {
krt_prefsrc = {{ .PrefSrc4 }};
accept;
} else {
reject;
}
reject;
{{ else }}
accept;
{{ end }}
Expand All @@ -82,12 +81,11 @@ protocol kernel {
{{ if .PrefSrc6 -}}
if source = RTS_STATIC then {
accept;
} else if source = RTS_BGP {
} else if source = RTS_BGP then {
krt_prefsrc = {{ .PrefSrc6 }};
accept;
} else {
reject;
}
reject;
{{ else }}
accept;
{{ end }}
Expand Down

0 comments on commit 9853b86

Please sign in to comment.