From 3f7e433dd28283a1c7af8b1b44d9d84929345a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=A8?= Date: Sat, 8 Oct 2016 17:16:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=A4=E5=A4=84http?= =?UTF-8?q?=E5=BC=80=E5=85=B3=EF=BC=8C=E9=9A=8Fss=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E5=92=8C=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowsocksX-NG/AppDelegate.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ShadowsocksX-NG/AppDelegate.swift b/ShadowsocksX-NG/AppDelegate.swift index faaeccc..354d0a9 100644 --- a/ShadowsocksX-NG/AppDelegate.swift +++ b/ShadowsocksX-NG/AppDelegate.swift @@ -166,6 +166,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele func applicationWillTerminate(_ aNotification: Notification) { // Insert code here to tear down your application StopSSLocal() + StopPrivoxy() ProxyConfHelper.disableProxy("hi") let defaults = UserDefaults.standard defaults.set(false, forKey: "ShadowsocksOn") @@ -179,6 +180,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele if isOn { StartSSLocal() + StartPrivoxy() if mode == "auto" { ProxyConfHelper.enablePACProxy("hi") } else if mode == "global" { @@ -188,6 +190,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele } } else { StopSSLocal() + StopPrivoxy() ProxyConfHelper.disableProxy("hi") } }