Skip to content

Commit

Permalink
Change default port from 1080 to 8089 to solve conflict on iOS8
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Fang authored and Kyle Fang committed Oct 6, 2014
1 parent d289389 commit a0de458
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ShadowWeb/SWBAppDelegate.m
Expand Up @@ -31,7 +31,7 @@ - (void)updateProxyMode {
if (proxyMode == nil || [proxyMode isEqualToString:@"pac"]) {
[AppProxyCap setPACURL:@"http://127.0.0.1:8090/proxy.pac"];
} else if ([proxyMode isEqualToString:@"global"]) {
[AppProxyCap setProxy:AppProxy_SOCKS Host:@"127.0.0.1" Port:1080];
[AppProxyCap setProxy:AppProxy_SOCKS Host:@"127.0.0.1" Port:8089];
} else{
[AppProxyCap setNoProxy];
}
Expand Down
4 changes: 2 additions & 2 deletions ShadowWeb/local.m
Expand Up @@ -564,7 +564,7 @@ void set_config(const char *server, const char *remote_port, const char* passwor
int local_main ()
{
int listenfd;
listenfd = create_and_bind("1080");
listenfd = create_and_bind("8089");
if (listenfd < 0) {
#ifdef DEBUG
NSLog(@"bind() error..");
Expand All @@ -576,7 +576,7 @@ int local_main ()
return 1;
}
#ifdef DEBUG
NSLog(@"server listening at port %s\n", "1080");
NSLog(@"server listening at port %s\n", "8089");
#endif

setnonblocking(listenfd);
Expand Down
2 changes: 1 addition & 1 deletion ShadowWeb/polipo.config
Expand Up @@ -11,7 +11,7 @@ disableLocalInterface = true
disableConfiguration = true
disableIndexing = true
dnsUseGethostbyname = yes
socksParentProxy = 127.0.0.1:1080
socksParentProxy = 127.0.0.1:8089
socksProxyType = socks5

# allowUnalignedRangeRequests boolean false Allow unaligned range requests (unreliable).
Expand Down
2 changes: 1 addition & 1 deletion ShadowWeb/polipo_disable.config
Expand Up @@ -11,7 +11,7 @@ disableLocalInterface = true
disableConfiguration = true
disableIndexing = true
dnsUseGethostbyname = yes
# socksParentProxy = 127.0.0.1:1080
# socksParentProxy = 127.0.0.1:8089
# socksProxyType = socks5

# allowUnalignedRangeRequests boolean false Allow unaligned range requests (unreliable).
Expand Down
Binary file modified proxy.pac.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion shadowsocks_sysconf/main.m
Expand Up @@ -73,7 +73,7 @@ int main(int argc, const char * argv[])

[proxies setObject:@"127.0.0.1" forKey:(NSString *)
kCFNetworkProxiesSOCKSProxy];
[proxies setObject:[NSNumber numberWithInteger:1080] forKey:(NSString*)
[proxies setObject:[NSNumber numberWithInteger:8089] forKey:(NSString*)
kCFNetworkProxiesSOCKSPort];
[proxies setObject:[NSNumber numberWithInt:1] forKey:(NSString*)
kCFNetworkProxiesSOCKSEnable];
Expand Down

0 comments on commit a0de458

Please sign in to comment.