From 2afe62952c52e9dc9cbd413db9a316ae4359c331 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Thu, 28 Sep 2017 13:47:30 +0200 Subject: 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 --- src/server.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server.h') diff --git a/src/server.h b/src/server.h index 5b538ea93..86f558d54 100644 --- a/src/server.h +++ b/src/server.h @@ -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. -- cgit v1.2.3