Parcourir la source

ssh: use the standard port number

Sergey Alirzaev il y a 5 ans
Parent
commit
b451459c15
2 fichiers modifiés avec 1 ajouts et 7 suppressions
  1. 1 1
      modules/SSH_Server/server.c
  2. 0 6
      modules/SSH_Server/wolfssh_test.h

+ 1 - 1
modules/SSH_Server/server.c

@@ -588,7 +588,7 @@ static void ssh_server(void *arg)
     SOCKET_T listenFd = 0;
     word32 defaultHighwater = EXAMPLE_HIGHWATER_MARK;
     word32 threadCount = 0;
-    word16 port = wolfSshPort;
+    word16 port = 22;
     const char multipleConnections = 1;
     char useEcc = 0;
     int  ch;

+ 0 - 6
modules/SSH_Server/wolfssh_test.h

@@ -117,12 +117,6 @@
 #else /* TEST_IPV6 */
     static const char* const wolfSshIp = "::1";
 #endif /* TEST_IPV6 */
-#ifdef WOLFSSL_NUCLEUS
-    /* port 8080 was open with QEMU */
-    static const word16 wolfSshPort = 8080;
-#else
-    static const word16 wolfSshPort = 22222;
-#endif
 
 #ifdef __GNUC__
     #define WS_NORETURN __attribute__((noreturn))