From 4d16820526f00d4cfd72439d103941965bdaf441 Mon Sep 17 00:00:00 2001 From: chen08209 Date: Wed, 1 May 2024 21:29:54 +0800 Subject: [PATCH] Fix the issue that VpnService can't be closed correctly in special cases --- lib/main.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/main.dart b/lib/main.dart index 10b1c93..f63d89a 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -78,6 +78,7 @@ Future vpnService() async { TileListenerWithVpn( onStop: () async { await app?.tip(appLocalizations.stopVpn); + await globalState.stopSystemProxy(); clashCore.shutdown(); exit(0); },