diff --git a/ShadowsocksX-NG/ProxyConfHelper.m b/ShadowsocksX-NG/ProxyConfHelper.m index 9c57b61..c716e93 100644 --- a/ShadowsocksX-NG/ProxyConfHelper.m +++ b/ShadowsocksX-NG/ProxyConfHelper.m @@ -176,7 +176,7 @@ GCDWebServer *webServer =nil; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSString * address = [defaults stringForKey:@"PacServer.ListenAddress"]; int port = (short)[defaults integerForKey:@"PacServer.ListenPort"]; - [webServer startWithPort:port bonjourName:@"webserver"]; + [webServer startWithOptions:@{@"BindToLocalhost":@YES, @"Port":@(port)} error:nil]; return [NSString stringWithFormat:@"%@%@:%d%@",@"http://",address,port,routerPath]; }