mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Server: affect bind_addr on constructor instead of start() (#6474)
bind_addr is already ready when using constructor as we read is.IPv6 from it, instead pass the whole address
This commit is contained in:
parent
27eeb3581f
commit
2afe62952c
4 changed files with 25 additions and 28 deletions
|
@ -1886,10 +1886,8 @@ bool Game::createSingleplayerServer(const std::string &map_dir,
|
|||
return false;
|
||||
}
|
||||
|
||||
server = new Server(map_dir, gamespec, simple_singleplayer_mode,
|
||||
bind_addr.isIPv6(), false);
|
||||
|
||||
server->start(bind_addr);
|
||||
server = new Server(map_dir, gamespec, simple_singleplayer_mode, bind_addr, false);
|
||||
server->start();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue