From bbb858cba04873a77ae3d55f759c4226cbd61eec Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 11 Aug 2011 10:45:16 +0200 Subject: [PATCH] Update other version of tcpip_straddr for https too --- src/tcpip.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tcpip.c b/src/tcpip.c index fff2ef9..603f331 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -471,7 +471,12 @@ void *tcpip_straddr(COMSTACK h, const char *str) tcpip_state *sp = (tcpip_state *)h->cprivate; int port = 210; 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