support PAC

This commit is contained in:
clowwindy
2013-06-24 21:49:37 +08:00
parent 09e1fbc3eb
commit 54712cdbbc
4 changed files with 5 additions and 3 deletions

View File

@@ -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);
}

View File

@@ -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]));
}
}

View File

@@ -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",