mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-10-22 01:51: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:
1 parent
4be45342b7
commit
aefbd2e903
29 files changed
+1665
-120
No files matched your search
@@ -2945,6 +2945,8 @@ bool SiLoadConfigurationCfg(SERVER *s, FOLDER *root)
|
||||
FreeBuf(pw);
|
||||
}
|
||||
|
||||
CfgGetStr(f8, "CustomHttpHeader", t.CustomHttpHeader, sizeof(t.CustomHttpHeader));
|
||||
|
||||
GetMachineHostName(machine_name, sizeof(machine_name));
|
||||
|
||||
CfgGetStr(f8, "LocalHostname", machine_name2, sizeof(machine_name2));
|
||||
@@ -3314,6 +3316,8 @@ FOLDER *SiWriteConfigurationToCfg(SERVER *s)
|
||||
|
||||
FreeBuf(pw);
|
||||
}
|
||||
|
||||
CfgAddStr(ddns_folder, "CustomHttpHeader", t->CustomHttpHeader);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user