Chore: adjust gVisor stack

This commit is contained in:
yaling888
2022-03-28 03:25:55 +08:00
parent fe76cbf31c
commit 8df8f8cb08
16 changed files with 106 additions and 104 deletions

View File

@ -330,7 +330,9 @@ func updateIPTables(cfg *config.Config) {
log.Infoln("[IPTABLES] Setting iptables completed")
}
func Cleanup() {
func Shutdown() {
P.Cleanup()
tproxy.CleanupTProxyIPTables()
log.Warnln("Clash shutting down")
}

View File

@ -48,7 +48,3 @@ func Parse(options ...Option) error {
executor.ApplyConfig(cfg, true)
return nil
}
func Cleanup() {
executor.Cleanup()
}