mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Infer ipv6_server from bind_address; fix client connect to IN(6)ADDR_ANY
This commit is contained in:
@@ -166,7 +166,8 @@ v3f ServerSoundParams::getPos(ServerEnvironment *env, bool *pos_exists) const
|
||||
Server::Server(
|
||||
const std::string &path_world,
|
||||
const SubgameSpec &gamespec,
|
||||
bool simple_singleplayer_mode
|
||||
bool simple_singleplayer_mode,
|
||||
bool ipv6
|
||||
):
|
||||
m_path_world(path_world),
|
||||
m_gamespec(gamespec),
|
||||
@@ -176,7 +177,7 @@ Server::Server(
|
||||
m_con(PROTOCOL_ID,
|
||||
512,
|
||||
CONNECTION_TIMEOUT,
|
||||
g_settings->getBool("enable_ipv6") && g_settings->getBool("ipv6_server"),
|
||||
ipv6,
|
||||
this),
|
||||
m_banmanager(NULL),
|
||||
m_rollback(NULL),
|
||||
|
Reference in New Issue
Block a user