projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bef3628
)
Update other version of tcpip_straddr for https too
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 11 Aug 2011 08:45:16 +0000
(10:45 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 11 Aug 2011 08:45:16 +0000
(10:45 +0200)
src/tcpip.c
patch
|
blob
|
history
diff --git
a/src/tcpip.c
b/src/tcpip.c
index
fff2ef9
..
603f331
100644
(file)
--- 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;