Browse Source

dynamic proxy in PAC

tags/2.3
clowwindy 10 years ago
parent
commit
bc3f4437e6
3 changed files with 5 additions and 2 deletions
  1. +4
    -0
      shadowsocks-csharp/PACServer.cs
  2. +1
    -1
      shadowsocks-csharp/proxy.pac.txt
  3. +0
    -1
      shadowsocks-csharp/shadowsocks-csharp.csproj

+ 4
- 0
shadowsocks-csharp/PACServer.cs 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
shadowsocks-csharp/proxy.pac.txt 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;';


+ 0
- 1
shadowsocks-csharp/shadowsocks-csharp.csproj View File

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


Loading…
Cancel
Save