mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 18:55:51 +01:00
Update old comment
This commit is contained in:
parent
3d7d00ad23
commit
db2468d7aa
@ -176,7 +176,7 @@ int mbedtls_net_bind( mbedtls_net_context *ctx, const char *bind_ip, const char
|
|||||||
if( ( ret = net_prepare() ) != 0 )
|
if( ( ret = net_prepare() ) != 0 )
|
||||||
return( ret );
|
return( ret );
|
||||||
|
|
||||||
/* Bind to IPv6 and/or IPv4, but only in TCP */
|
/* Bind to IPv6 and/or IPv4, but only in the desired protocol */
|
||||||
memset( &hints, 0, sizeof( hints ) );
|
memset( &hints, 0, sizeof( hints ) );
|
||||||
hints.ai_family = AF_UNSPEC;
|
hints.ai_family = AF_UNSPEC;
|
||||||
hints.ai_socktype = proto == MBEDTLS_NET_PROTO_UDP ? SOCK_DGRAM : SOCK_STREAM;
|
hints.ai_socktype = proto == MBEDTLS_NET_PROTO_UDP ? SOCK_DGRAM : SOCK_STREAM;
|
||||||
|
Loading…
Reference in New Issue
Block a user