allow sniffer to sniff known testsuite, no port 0
This commit is contained in:
parent
07407bbdaa
commit
d7e74d0383
@ -98,7 +98,8 @@ THREAD_RETURN CYASSL_THREAD echoserver_test(void* args)
|
||||
doPSK = 1;
|
||||
#endif
|
||||
|
||||
#if defined(NO_MAIN_DRIVER) && !defined(USE_WINDOWS_API)
|
||||
#if defined(NO_MAIN_DRIVER) && !defined(USE_WINDOWS_API) && \
|
||||
!defined(CYASSL_SNIFFER)
|
||||
port = 0;
|
||||
#endif
|
||||
#if defined(USE_ANY_ADDR)
|
||||
|
@ -190,7 +190,7 @@ void simple_test(func_args* args)
|
||||
cliArgs.return_code = 0;
|
||||
|
||||
strcpy(svrArgs.argv[0], "SimpleServer");
|
||||
#ifndef USE_WINDOWS_API
|
||||
#if !defined(USE_WINDOWS_API) && !defined(CYASSL_SNIFFER)
|
||||
svrArgs.argc = NUMARGS;
|
||||
strcpy(svrArgs.argv[1], "-p");
|
||||
strcpy(svrArgs.argv[2], "0");
|
||||
|
Loading…
Reference in New Issue
Block a user