mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Infer ipv6_server from bind_address; fix client connect to IN(6)ADDR_ANY
This commit is contained in:
parent
edcad09dee
commit
6090e95cdc
7 changed files with 88 additions and 47 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue