X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftcpip.c;h=603f3315ca3ea1a54819d50888da4585b69833d9;hb=3c287bc1d48ee6a1f300054c2cebd0ba312bd5b9;hp=c3a4b054bcdafc43f8399a41d2e04017cffd0cc6;hpb=ec603701ef51f85beef83898aa36e385028692f1;p=yaz-moved-to-github.git diff --git a/src/tcpip.c b/src/tcpip.c index c3a4b05..603f331 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; @@ -466,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;