If port to silc_clinet_connect_to_server is zero, use default port.
authorPekka Riikonen <priikone@silcnet.org>
Thu, 31 Oct 2002 21:46:04 +0000 (21:46 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Thu, 31 Oct 2002 21:46:04 +0000 (21:46 +0000)
lib/silcclient/client.c

index 278fa3796644a2fee864081c10097356826552da..23033e75d95a8baee483657bc595b894c5e78bd8 100644 (file)
@@ -373,7 +373,7 @@ int silc_client_connect_to_server(SilcClient client,
   ctx->client = client;
   ctx->conn = conn;
   ctx->host = strdup(host);
-  ctx->port = port;
+  ctx->port = port ? port : 706;
   ctx->tries = 0;
 
   /* Do the actual connecting process */