diff --git a/component/resolver/enhancer.go b/component/resolver/enhancer.go index 503211c4..5a8c4f4f 100644 --- a/component/resolver/enhancer.go +++ b/component/resolver/enhancer.go @@ -15,7 +15,7 @@ type Enhancer interface { FindHostByIP(net.IP) (string, bool) FlushFakeIP() error InsertHostByIP(net.IP, string) - StoreFakePoolSate() + StoreFakePoolState() } func FakeIPEnabled() bool { @@ -79,8 +79,8 @@ func FlushFakeIP() error { return nil } -func StoreFakePoolSate() { +func StoreFakePoolState() { if mapper := DefaultHostMapper; mapper != nil { - mapper.StoreFakePoolSate() + mapper.StoreFakePoolState() } } diff --git a/dns/enhancer.go b/dns/enhancer.go index 4e828987..ff654765 100644 --- a/dns/enhancer.go +++ b/dns/enhancer.go @@ -101,7 +101,7 @@ func (h *ResolverEnhancer) PatchFrom(o *ResolverEnhancer) { } } -func (h *ResolverEnhancer) StoreFakePoolSate() { +func (h *ResolverEnhancer) StoreFakePoolState() { if h.fakePool != nil { h.fakePool.StoreState() } diff --git a/hub/executor/executor.go b/hub/executor/executor.go index debf173c..09d72ccf 100644 --- a/hub/executor/executor.go +++ b/hub/executor/executor.go @@ -395,7 +395,7 @@ func updateIPTables(cfg *config.Config) { func Shutdown() { P.Cleanup() tproxy.CleanupTProxyIPTables() - resolver.StoreFakePoolSate() + resolver.StoreFakePoolState() log.Warnln("Clash shutting down") }