dynamic proxy in PAC
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user