From 0ca10798eafca3912e8276e2ba93e8c8af4dcdc7 Mon Sep 17 00:00:00 2001 From: yaling888 <73897884+yaling888@users.noreply.github.com> Date: Wed, 13 Apr 2022 16:47:47 +0800 Subject: [PATCH] Chore: fix typo --- component/resolver/enhancer.go | 6 +++--- dns/enhancer.go | 2 +- hub/executor/executor.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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") }