Added SOCKS4 and SOCKS5 support for SILC client.
[silc.git] / lib / silccore / silcnet.c
index 79aa3cc7748c8f83f5b7ff233ed0dcf7c15706c7..3104b67c72a20b45790acf2b58b004c22968b213 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/06/30 10:49:48  priikone
+ *     Added SOCKS4 and SOCKS5 support for SILC client.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Importet from internal CVS/Added Log headers.
  *
  *
  */
@@ -119,6 +122,7 @@ int silc_net_create_connection(int port, char *host)
   /* Set socket information */
   memset(&desthost, 0, sizeof(desthost));
   desthost.sin_port = htons(port);
+  desthost.sin_family = PF_INET;
   memcpy(&desthost.sin_addr, dest->h_addr_list[0], sizeof(desthost.sin_addr));
 
   /* Create the connection socket */
@@ -169,6 +173,7 @@ int silc_net_create_connection_async(int port, char *host)
   /* Set socket information */
   memset(&desthost, 0, sizeof(desthost));
   desthost.sin_port = htons(port);
+  desthost.sin_family = PF_INET;
   memcpy(&desthost.sin_addr, dest->h_addr_list[0], sizeof(desthost.sin_addr));
 
   /* Create the connection socket */