X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftcpip.c;h=603f3315ca3ea1a54819d50888da4585b69833d9;hb=8fba4cf2cac1cc543aa4c1063c78b449ebac44a7;hp=fff2ef985391b02867f25984e77a15be7f33b6a7;hpb=58391187e99197eed163baa468c0b979c7b942b7;p=yaz-moved-to-github.git 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;