Fixes reset ProxyExceptions defaults.

This commit is contained in:
Qiu Yuzhou
2018-10-02 23:12:50 +08:00
parent a589d15940
commit b4868ede64
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
"LocalHTTP.ListenPort": NSNumber(value: 1087 as UInt16),
"LocalHTTPOn": true,
"LocalHTTP.FollowGlobal": true,
"ProxyExceptions": "127.0.0.1, localhost, 192.168.0.0/16, 10.0.0.0/8",
"ProxyExceptions": "127.0.0.1, localhost, 192.168.0.0/16, 10.0.0.0/8, FE80::/64, ::1, FD00::/8",
])
statusItem = NSStatusBar.system.statusItem(withLength: AppDelegate.StatusItemIconWidth)

View File

@ -33,7 +33,7 @@ class PreferencesWinController: NSWindowController {
@IBAction func resetProxyExceptions(sender: NSButton) {
let defaults = UserDefaults.standard
defaults.set("127.0.0.1, localhost, 192.168.0.0/16, 10.0.0.0/8, FE80::/64, ::1, FD00::/8", forKey: "ProxyExceptions")
defaults.removeObject(forKey: "ProxyExceptions")
}
}