forked from wolfSSL/wolfssl
add USE_ANY_ADDR for bind to any with echoserver
This commit is contained in:
@ -101,6 +101,9 @@ THREAD_RETURN CYASSL_THREAD echoserver_test(void* args)
|
|||||||
#if defined(NO_MAIN_DRIVER) && !defined(USE_WINDOWS_API)
|
#if defined(NO_MAIN_DRIVER) && !defined(USE_WINDOWS_API)
|
||||||
port = 0;
|
port = 0;
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(USE_ANY_ADDR)
|
||||||
|
useAnyAddr = 1;
|
||||||
|
#endif
|
||||||
tcp_listen(&sockfd, &port, useAnyAddr, doDTLS);
|
tcp_listen(&sockfd, &port, useAnyAddr, doDTLS);
|
||||||
|
|
||||||
#if defined(CYASSL_DTLS)
|
#if defined(CYASSL_DTLS)
|
||||||
|
Reference in New Issue
Block a user