Chore: fix typo

This commit is contained in:
yaling888 2022-04-13 16:47:47 +08:00 committed by MetaCubeX
parent 3ea3653d7a
commit 0ca10798ea
3 changed files with 5 additions and 5 deletions

View file

@ -15,7 +15,7 @@ type Enhancer interface {
FindHostByIP(net.IP) (string, bool) FindHostByIP(net.IP) (string, bool)
FlushFakeIP() error FlushFakeIP() error
InsertHostByIP(net.IP, string) InsertHostByIP(net.IP, string)
StoreFakePoolSate() StoreFakePoolState()
} }
func FakeIPEnabled() bool { func FakeIPEnabled() bool {
@ -79,8 +79,8 @@ func FlushFakeIP() error {
return nil return nil
} }
func StoreFakePoolSate() { func StoreFakePoolState() {
if mapper := DefaultHostMapper; mapper != nil { if mapper := DefaultHostMapper; mapper != nil {
mapper.StoreFakePoolSate() mapper.StoreFakePoolState()
} }
} }

View file

@ -101,7 +101,7 @@ func (h *ResolverEnhancer) PatchFrom(o *ResolverEnhancer) {
} }
} }
func (h *ResolverEnhancer) StoreFakePoolSate() { func (h *ResolverEnhancer) StoreFakePoolState() {
if h.fakePool != nil { if h.fakePool != nil {
h.fakePool.StoreState() h.fakePool.StoreState()
} }

View file

@ -395,7 +395,7 @@ func updateIPTables(cfg *config.Config) {
func Shutdown() { func Shutdown() {
P.Cleanup() P.Cleanup()
tproxy.CleanupTProxyIPTables() tproxy.CleanupTProxyIPTables()
resolver.StoreFakePoolSate() resolver.StoreFakePoolState()
log.Warnln("Clash shutting down") log.Warnln("Clash shutting down")
} }