mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 19:56:51 +08:00
Chore: fix typo
This commit is contained in:
parent
66503d64e3
commit
caf271a669
|
@ -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 New Issue
Block a user