1
0
mirror of https://github.com/cloudflare/gortr.git synced 2024-05-19 06:50:10 +00:00

Merge pull request #45 from cloudflare/bugfix/empty-slurm

Bugfix #42: empty slurm file removes all ROAs
This commit is contained in:
lspgn
2020-02-26 22:47:43 -08:00
committed by GitHub

View File

@ -83,7 +83,7 @@ func (s *SlurmValidationOutputFilters) FilterOnROAs(roas []ROAJson) ([]ROAJson,
added := make([]ROAJson, 0)
removed := make([]ROAJson, 0)
if s.PrefixFilters == nil || len(s.PrefixFilters) == 0 {
return added, removed
return roas, removed
}
for _, roa := range roas {
rPrefix := roa.GetPrefix()