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:
@ -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()
|
||||
|
Reference in New Issue
Block a user