add USE_ANY_ADDR for bind to any with echoserver

This commit is contained in:
toddouska 2013-04-11 21:51:17 -07:00
parent 8a6bd081c4
commit ba3e089596

View File

@ -101,6 +101,9 @@ THREAD_RETURN CYASSL_THREAD echoserver_test(void* args)
#if defined(NO_MAIN_DRIVER) && !defined(USE_WINDOWS_API)
port = 0;
#endif
#if defined(USE_ANY_ADDR)
useAnyAddr = 1;
#endif
tcp_listen(&sockfd, &port, useAnyAddr, doDTLS);
#if defined(CYASSL_DTLS)