tcpip_straddr: Use port 443 for https
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 11 Aug 2011 08:42:11 +0000 (10:42 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 11 Aug 2011 08:42:11 +0000 (10:42 +0200)
src/tcpip.c

index c3a4b05..fff2ef9 100644 (file)
@@ -434,7 +434,12 @@ void *tcpip_straddr(COMSTACK h, const char *str)
     const char *port = "210";
     struct addrinfo *ai = 0;
     if (h->protocol == PROTO_HTTP)
-        port = "80";
+    {
+        if (h->type == ssl_type)
+            port = "443";
+        else
+            port = "80";
+    }
     if (!tcpip_init())
         return 0;