mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 19:56:51 +08:00
chore: cleanup codes
This commit is contained in:
parent
9bd834b34a
commit
8463db4f4e
|
@ -491,7 +491,7 @@ func updateIPTables(cfg *config.Config) {
|
|||
}
|
||||
|
||||
func Shutdown() {
|
||||
listener.Cleanup(false)
|
||||
listener.Cleanup()
|
||||
tproxy.CleanupTProxyIPTables()
|
||||
resolver.StoreFakePoolState()
|
||||
|
||||
|
|
|
@ -902,6 +902,6 @@ func closeTunListener() {
|
|||
}
|
||||
}
|
||||
|
||||
func Cleanup(wait bool) {
|
||||
func Cleanup() {
|
||||
closeTunListener()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user