Skip to content

Commit 09572f8

Browse files
committed
Update UserAgent
1 parent 7d9e73f commit 09572f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: shadowsocks-csharp/Controller/Service/UpdateChecker.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class UpdateChecker
1515
private static Logger logger = LogManager.GetCurrentClassLogger();
1616

1717
private const string UpdateURL = "https://api.github.com/repos/shadowsocks/shadowsocks-windows/releases";
18-
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";
18+
private const string UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36";
1919

2020
private Configuration config;
2121
public bool NewVersionFound;

Diff for: shadowsocks-csharp/Proxy/HttpProxy.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void EndConnectProxy(IAsyncResult asyncResult)
7070
"CONNECT {0} HTTP/1.1" + HTTP_CRLF +
7171
"Host: {0}" + HTTP_CRLF +
7272
"Proxy-Connection: keep-alive" + HTTP_CRLF +
73-
"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 +
73+
"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36" + HTTP_CRLF +
7474
"{1}" + // Proxy-Authorization if any
7575
"" + HTTP_CRLF; // End with an empty line
7676
private const string PROXY_AUTH_TEMPLATE = "Proxy-Authorization: Basic {0}" + HTTP_CRLF;

0 commit comments

Comments
 (0)