chore: cleanup codes

This commit is contained in:
Larvan2 committed 2023-09-02 14:12:53 +08:00
1 parent 427a377c2a
commit d79c13064e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -491,7 +491,7 @@ func updateIPTables(cfg *config.Config) {
}
func Shutdown() {
listener.Cleanup(false)
listener.Cleanup()
tproxy.CleanupTProxyIPTables()
resolver.StoreFakePoolState()
+1 -1
View File
@@ -902,6 +902,6 @@ func closeTunListener() {
}
}
func Cleanup(wait bool) {
func Cleanup() {
closeTunListener()
}