mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-12-16 07:01:32 +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:
@ -1542,6 +1542,28 @@ bool IsInListStr(LIST *o, char *str)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool IsInListUniStr(LIST *o, wchar_t *str)
|
||||
{
|
||||
UINT i;
|
||||
// Validate arguments
|
||||
if (o == NULL || str == NULL)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
for (i = 0; i < LIST_NUM(o); i++)
|
||||
{
|
||||
wchar_t *s = LIST_DATA(o, i);
|
||||
|
||||
if (UniStrCmpi(s, str) == 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Get the pointer by scanning by UINT pointer in the list
|
||||
void *ListKeyToPointer(LIST *o, UINT key)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user