Browse Source

Update user-agent

tags/4.1.5
celeron533 5 years ago
parent
commit
63282a4c8d
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      shadowsocks-csharp/Controller/Service/UpdateChecker.cs
  2. +1
    -1
      shadowsocks-csharp/Proxy/HttpProxy.cs

+ 1
- 1
shadowsocks-csharp/Controller/Service/UpdateChecker.cs View File

@@ -13,7 +13,7 @@ namespace Shadowsocks.Controller
public class UpdateChecker
{
private const string UpdateURL = "https://api.github.com/repos/shadowsocks/shadowsocks-windows/releases";
private const string UserAgent = "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.3319.102 Safari/537.36";
private const string UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36";
private Configuration config;
public bool NewVersionFound;


+ 1
- 1
shadowsocks-csharp/Proxy/HttpProxy.cs View File

@@ -67,7 +67,7 @@ namespace Shadowsocks.Proxy
"CONNECT {0} HTTP/1.1" + HTTP_CRLF +
"Host: {0}" + HTTP_CRLF +
"Proxy-Connection: keep-alive" + HTTP_CRLF +
"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" + HTTP_CRLF +
"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36" + HTTP_CRLF +
"" + HTTP_CRLF; // End with an empty line

public void BeginConnectDest(EndPoint destEndPoint, AsyncCallback callback, object state)


Loading…
Cancel
Save