From 8463db4f4efaf0642e0b9c4d6dc2048a9d11efe1 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sat, 2 Sep 2023 14:10:26 +0800 Subject: [PATCH] chore: cleanup codes --- hub/executor/executor.go | 2 +- listener/listener.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hub/executor/executor.go b/hub/executor/executor.go index 8cb8358f..b7111c14 100644 --- a/hub/executor/executor.go +++ b/hub/executor/executor.go @@ -491,7 +491,7 @@ func updateIPTables(cfg *config.Config) { } func Shutdown() { - listener.Cleanup(false) + listener.Cleanup() tproxy.CleanupTProxyIPTables() resolver.StoreFakePoolState() diff --git a/listener/listener.go b/listener/listener.go index 9b4840e1..b1d59d49 100644 --- a/listener/listener.go +++ b/listener/listener.go @@ -902,6 +902,6 @@ func closeTunListener() { } } -func Cleanup(wait bool) { +func Cleanup() { closeTunListener() }