mirror of https://github.com/eclipse/paho.mqtt.c
WS proxy fix & MacOS compile warning fix
This commit is contained in:
parent
ce3601e579
commit
7622c3741b
|
|
@ -198,9 +198,9 @@ int MQTTProtocol_connect(const char* ip_address, Clients* aClient, int websocket
|
|||
if (timeout < 0)
|
||||
rc = -1;
|
||||
else
|
||||
rc = Socket_new(aClient->net.http_proxy, addr_len, port, &(aClient->net.socket), timeout);
|
||||
rc = Socket_new(aClient->net.https_proxy, addr_len, port, &(aClient->net.socket), timeout);
|
||||
#else
|
||||
rc = Socket_new(aClient->net.http_proxy, addr_len, port, &(aClient->net.socket));
|
||||
rc = Socket_new(aClient->net.https_proxy, addr_len, port, &(aClient->net.socket));
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -379,7 +379,7 @@ int WebSocket_connect( networkHandles *net, const char *uri )
|
|||
headers_buf_cur += sprintf(headers_buf_cur, "%s: %s\r\n", headers->name, headers->value);
|
||||
headers++;
|
||||
}
|
||||
headers_buf_cur = '\0';
|
||||
*headers_buf_cur = '\0';
|
||||
}
|
||||
|
||||
for ( i = 0; i < 2; ++i )
|
||||
|
|
|
|||
Loading…
Reference in New Issue