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)
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()
}
}

View file

@ -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()
}

View file

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