Bind to IPv6 addresses by default

The `::` address covers both IPv4 and IPv6 addresses allowing both IP
versions to be used by default.
This commit is contained in:
Markus Mäkelä
2017-03-28 13:32:58 +03:00
parent 4b2d94d0f8
commit 1901a3bc0a

View File

@ -311,7 +311,7 @@ serviceStartPort(SERVICE *service, SERV_LISTENER *port)
} }
else else
{ {
sprintf(config_bind, "0.0.0.0|%d", port->port); sprintf(config_bind, "::|%d", port->port);
} }
/** Load the authentication users before before starting the listener */ /** Load the authentication users before before starting the listener */