mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-09-25 20:59:20 +03:00
Add custom HTTP header feature for HTTP proxy
A custom HTTP header can be used to bypass certain restrictions imposed on the network or to avoid speed limitations applied by the QoS.
This commit is contained in:
@ -247,6 +247,7 @@ UINT SmProxyDlg(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void *param)
|
||||
a.ProxyPort = t->ProxyPort;
|
||||
StrCpy(a.ProxyUsername, sizeof(a.ProxyUsername), t->ProxyUsername);
|
||||
StrCpy(a.ProxyPassword, sizeof(a.ProxyPassword), t->ProxyPassword);
|
||||
StrCpy(a.CustomHttpHeader, sizeof(a.CustomHttpHeader), t->CustomHttpHeader);
|
||||
|
||||
if (CmProxyDlg(hWnd, &a))
|
||||
{
|
||||
@ -255,6 +256,7 @@ UINT SmProxyDlg(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void *param)
|
||||
t->ProxyPort = a.ProxyPort;
|
||||
StrCpy(t->ProxyUsername, sizeof(t->ProxyUsername), a.ProxyUsername);
|
||||
StrCpy(t->ProxyPassword, sizeof(t->ProxyPassword), a.ProxyPassword);
|
||||
StrCpy(t->CustomHttpHeader, sizeof(t->CustomHttpHeader), a.CustomHttpHeader);
|
||||
}
|
||||
|
||||
SmProxyDlgUpdate(hWnd, t);
|
||||
|
Reference in New Issue
Block a user