mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +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
|
@ -118,14 +118,14 @@ public:
|
|||
const std::string &path_world,
|
||||
const SubgameSpec &gamespec,
|
||||
bool simple_singleplayer_mode,
|
||||
bool ipv6,
|
||||
Address bind_addr,
|
||||
bool dedicated,
|
||||
ChatInterface *iface = nullptr
|
||||
);
|
||||
~Server();
|
||||
DISABLE_CLASS_COPY(Server);
|
||||
|
||||
void start(Address bind_addr);
|
||||
void start();
|
||||
void stop();
|
||||
// This is mainly a way to pass the time to the server.
|
||||
// Actual processing is done in an another thread.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue