Fixes reset ProxyExceptions
defaults.
This commit is contained in:
@ -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)
|
||||
|
@ -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")
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user