mirror of
https://github.com/qinyuhang/ShadowsocksX-NG-R.git
synced 2026-10-22 16:03:45 +00:00
Merge branch 'hotfix-macOS10.12' of https://github.com/qinyuhang/ShadowsocksX-NG into merge-hotfix-macOS10.12
This commit is contained in:
@@ -139,14 +139,12 @@
|
||||
[self callHelper:args];
|
||||
}
|
||||
|
||||
|
||||
+ (void)enableWhiteDomainListProxy {
|
||||
NSString* urlString = [NSString stringWithFormat:@"%@/.ShadowsocksX-NG/whitelist.pac", NSHomeDirectory()];
|
||||
NSURL* url = [NSURL fileURLWithPath:urlString];
|
||||
NSMutableArray* args = [@[@"--mode", @"auto", @"--pac-url", [url absoluteString]]mutableCopy];
|
||||
|
||||
[self addArguments4ManualSpecifyNetworkServices:args];
|
||||
|
||||
[self callHelper:args];
|
||||
}
|
||||
|
||||
@@ -171,6 +169,7 @@
|
||||
// , @"--port", [NSString stringWithFormat:@"%lu", (unsigned long)port]
|
||||
// , @"--pac-url", [url absoluteString]
|
||||
// ]mutableCopy];
|
||||
|
||||
NSMutableArray* args = [@[@"--mode", @"off"]mutableCopy];
|
||||
[self addArguments4ManualSpecifyNetworkServices:args];
|
||||
[self callHelper:args];
|
||||
|
||||
Reference in New Issue
Block a user