mirror of
https://github.com/zhigang1992/shadowsocks-iOS.git
synced 2026-04-23 04:29:25 +08:00
support PAC
This commit is contained in:
Submodule AppProxyCap updated: b8d3d06b9c...8360c9aaab
@@ -53,7 +53,7 @@ void polipo_exit();
|
||||
dispatch_queue_t web = dispatch_queue_create("web", NULL);
|
||||
dispatch_async(web, ^{
|
||||
@try {
|
||||
[webServer runWithPort:8080];
|
||||
[webServer runWithPort:8090];
|
||||
} @catch (NSException *e) {
|
||||
NSLog(@"webserver quit with error: %@", e);
|
||||
}
|
||||
|
||||
@@ -15,7 +15,8 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
@autoreleasepool {
|
||||
[AppProxyCap activate];
|
||||
[AppProxyCap setProxy:AppProxy_SOCKS Host:@"127.0.0.1" Port:1080];
|
||||
// [AppProxyCap setProxy:AppProxy_SOCKS Host:@"127.0.0.1" Port:1080];
|
||||
[AppProxyCap setPACURL:@"http://127.0.0.1:8090/proxy.pac"];
|
||||
return UIApplicationMain(argc, argv, nil, NSStringFromClass([SWBAppDelegate class]));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ var directList = [
|
||||
"ra.gg",
|
||||
"cc.cocimg.com",
|
||||
"i3.itc.cn",
|
||||
"ip138.com",
|
||||
"static.gtimg.com",
|
||||
"www.panabit.com",
|
||||
"ecpm.tanx.com",
|
||||
|
||||
Reference in New Issue
Block a user