Feature: flush fakeip pool
This commit is contained in:
@ -13,6 +13,7 @@ type Enhancer interface {
|
||||
IsFakeBroadcastIP(net.IP) bool
|
||||
IsExistFakeIP(net.IP) bool
|
||||
FindHostByIP(net.IP) (string, bool)
|
||||
FlushFakeIP() error
|
||||
}
|
||||
|
||||
func FakeIPEnabled() bool {
|
||||
@ -62,3 +63,10 @@ func FindHostByIP(ip net.IP) (string, bool) {
|
||||
|
||||
return "", false
|
||||
}
|
||||
|
||||
func FlushFakeIP() error {
|
||||
if mapper := DefaultHostMapper; mapper != nil {
|
||||
return mapper.FlushFakeIP()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user