mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-14 07:13:37 +00:00
Fixed bug where clearing proxy setting, didn't clear all the settings
This commit is contained in:
@@ -3797,6 +3797,11 @@ struct sockaddr_in6* ILibWebClient_SetProxy(ILibWebClient_RequestToken token, ch
|
||||
{
|
||||
ILibWebClientDataObject *wcdo = ILibWebClient_GetStateObjectFromRequestToken(token);
|
||||
if (wcdo == NULL) { return(NULL); }
|
||||
if (proxyHost == NULL)
|
||||
{
|
||||
memset(&(wcdo->proxy), 0, sizeof(struct sockaddr_in6));
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
if (ILibResolveEx(proxyHost, proxyPort, &(wcdo->proxy)) != 0 || wcdo->proxy.sin6_family == AF_UNSPEC)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user