fix: missing parameters
This commit is contained in:
@@ -31,6 +31,7 @@ bool ProxyConfigurator::setProxy(const char* ip, unsigned short port)
|
||||
ZeroMemory(&list, sizeof(list));
|
||||
ZeroMemory(options, sizeof(options));
|
||||
|
||||
options[0].dwOption = INTERNET_PER_CONN_FLAGS;
|
||||
options[0].Value.dwValue = PROXY_TYPE_PROXY | PROXY_TYPE_DIRECT;
|
||||
|
||||
options[1].dwOption = INTERNET_PER_CONN_PROXY_SERVER;
|
||||
@@ -68,6 +69,7 @@ bool ProxyConfigurator::clearProxy()
|
||||
|
||||
options[0].dwOption = INTERNET_PER_CONN_FLAGS;
|
||||
options[0].Value.dwValue = PROXY_TYPE_DIRECT;
|
||||
list.dwOptionCount = 1;
|
||||
|
||||
list.dwSize = sizeof(INTERNET_PER_CONN_OPTION_LIST);
|
||||
list.pszConnection = NULL;
|
||||
|
||||
Reference in New Issue
Block a user