mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 20:52:15 +08:00
chore: cleanup codes
This commit is contained in:
parent
427a377c2a
commit
d79c13064e
@ -491,7 +491,7 @@ func updateIPTables(cfg *config.Config) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Shutdown() {
|
func Shutdown() {
|
||||||
listener.Cleanup(false)
|
listener.Cleanup()
|
||||||
tproxy.CleanupTProxyIPTables()
|
tproxy.CleanupTProxyIPTables()
|
||||||
resolver.StoreFakePoolState()
|
resolver.StoreFakePoolState()
|
||||||
|
|
||||||
|
@ -902,6 +902,6 @@ func closeTunListener() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func Cleanup(wait bool) {
|
func Cleanup() {
|
||||||
closeTunListener()
|
closeTunListener()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user