This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
youys
/
shadowsocks-windows
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
67
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
dynamic proxy in PAC
tags/2.3
clowwindy
10 years ago
parent
2ed2c8b9be
commit
bc3f4437e6
3 changed files
with
5 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
shadowsocks-csharp/PACServer.cs
+1
-1
shadowsocks-csharp/proxy.pac.txt
+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" />
Write
Preview
Loading…
Cancel
Save