dynamic proxy in PAC

This commit is contained in:
clowwindy
2014-11-04 02:39:25 +08:00
parent 2ed2c8b9be
commit bc3f4437e6
3 changed files with 5 additions and 2 deletions
+4
View File
@@ -55,6 +55,10 @@ namespace shadowsocks_csharp
string pac = Resources.proxy_pac;
string proxy = "PROXY 127.0.0.1:8123; DIRECT;";
pac = pac.Replace("__PROXY__", proxy);
if (bytesRead > 0)
{
string text = String.Format(@"HTTP/1.1 200 OK
+1 -1
View File
@@ -2477,7 +2477,7 @@ var domains = {
"1-apple.com.tw": 1
};
var proxy = "PROXY 127.0.0.1:8123; DIRECT;";
var proxy = "__PROXY__";
var direct = 'DIRECT;';
@@ -128,7 +128,6 @@
<Compile Include="simple-json\src\SimpleJson\SimpleJson.cs" />
</ItemGroup>
<ItemGroup>
<None Include="polipo.exe" />
<None Include="config.txt" />
<Content Include="icon144.ico" />
<None Include="proxy.pac.txt" />