From: Adam Dickmeiss Date: Thu, 11 Aug 2011 08:42:11 +0000 (+0200) Subject: tcpip_straddr: Use port 443 for https X-Git-Tag: v4.2.8~4 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=58391187e99197eed163baa468c0b979c7b942b7;p=yaz-moved-to-github.git tcpip_straddr: Use port 443 for https --- diff --git a/src/tcpip.c b/src/tcpip.c index c3a4b05..fff2ef9 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -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;