From 58391187e99197eed163baa468c0b979c7b942b7 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 11 Aug 2011 10:42:11 +0200 Subject: [PATCH] tcpip_straddr: Use port 443 for https --- src/tcpip.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- 1.7.10.4