ipv6 client fix
noticed by James Devine Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
055f2979ec
commit
7844d04adc
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ struct libwebsocket *libwebsocket_client_connect_2(
|
|||
|
||||
} else {
|
||||
ads = lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_PEER_ADDRESS);
|
||||
#ifdef LWS_WITH_IPV6
|
||||
#ifdef LWS_USE_IPV6
|
||||
if (LWS_IPV6_ENABLED(context))
|
||||
server_addr6.sin6_port = htons(wsi->u.hdr.ah->c_port);
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue