Chore: fix typo
This commit is contained in:
parent
3ea3653d7a
commit
0ca10798ea
3 changed files with 5 additions and 5 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -395,7 +395,7 @@ func updateIPTables(cfg *config.Config) {
|
|||
func Shutdown() {
|
||||
P.Cleanup()
|
||||
tproxy.CleanupTProxyIPTables()
|
||||
resolver.StoreFakePoolSate()
|
||||
resolver.StoreFakePoolState()
|
||||
|
||||
log.Warnln("Clash shutting down")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue