From: Fredrik Tolf Date: Thu, 27 Dec 2012 07:31:43 +0000 (+0100) Subject: htparser: Fixed SSL listening bug. X-Git-Tag: 0.12~21 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=aa06d1b36cfaa0610205cf49003277e6a12c874b htparser: Fixed SSL listening bug. --- diff --git a/src/ssl-gnutls.c b/src/ssl-gnutls.c index 24c8752..d4862d4 100644 --- a/src/ssl-gnutls.c +++ b/src/ssl-gnutls.c @@ -607,9 +607,9 @@ void handlegnussl(int argc, char **argp, char **argv) pd->creds = creds; pd->ncreds = ncreds.b; mustart(listenloop, pd); - if((fd = listensock6(port)) < 0) { + if((fd = listensock4(port)) < 0) { if(errno != EADDRINUSE) { - flog(LOG_ERR, "could not listen on IPv6 port (port %i): %s", port, strerror(errno)); + flog(LOG_ERR, "could not listen on IPv4 port (port %i): %s", port, strerror(errno)); exit(1); } } else {