diff --git a/pkg/proxy/ipvs/ipset.go b/pkg/proxy/ipvs/ipset.go index 510d4c98fe8..5f2891c5893 100644 --- a/pkg/proxy/ipvs/ipset.go +++ b/pkg/proxy/ipvs/ipset.go @@ -133,7 +133,7 @@ func (set *IPSet) validateEntry(entry *utilipset.Entry) bool { } func (set *IPSet) isEmpty() bool { - return len(set.activeEntries.UnsortedList()) == 0 + return set.activeEntries.Len() == 0 } func (set *IPSet) getComment() string {