[bug] ssl_port is ignored by Directadmin when running in debug mode

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
15,366
Location
www.poralix.com
Hello,

I guess I've found a bug:

So I've got

Code:
# egrep -i "ssl|port" /usr/local/directadmin/conf/directadmin.conf
SSL=0
apachecert=/etc/httpd/conf/ssl.crt/server.crt
apachekey=/etc/httpd/conf/ssl.key/server.key
port=2221
ssl_port=2222
ssl_redirect_host=host.server-with.da

As soon as I enable debug, I've got

Code:
# /usr/local/directadmin/directadmin b800
Debug mode. Level 800

Converting IPv4 IP: 0.0.0.0
DirectAdmin 1.40.3
Accepting Connections on port 2221
Sockets::handshake - begin

Thus Directadmin does not accept connections on port 2222.

So is it a bug or designed behavior? In case it's a bug, can we hope for a fix?
 
Did you look at netstat too to verify the port is never opened? My guess is its not if you say you cant connect to it....so it must be a form of bug.
 
Here is it

Code:
# netstat -an | grep LISTEN | grep ^tcp | grep 222
tcp        0      0 0.0.0.0:2221                0.0.0.0:*                   LISTEN

and the same is if SSL= is set to 1

Code:
SSL=1
apachecert=/etc/httpd/conf/ssl.crt/server.crt
apachekey=/etc/httpd/conf/ssl.key/server.key
port=2221
ssl_port=2222
ssl_redirect_host=host.server-with.da
 
Back
Top