summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-09-28 13:47:30 +0200
committerGitHub <noreply@github.com>2017-09-28 13:47:30 +0200
commit2afe62952c52e9dc9cbd413db9a316ae4359c331 (patch)
tree9cd9523daa1b844c1a235674f8831113d522be41 /src/server.h
parent27eeb3581f5ee7183f326807c36afbe272b0d985 (diff)
downloadminetest-2afe62952c52e9dc9cbd413db9a316ae4359c331.tar.gz
minetest-2afe62952c52e9dc9cbd413db9a316ae4359c331.tar.bz2
minetest-2afe62952c52e9dc9cbd413db9a316ae4359c331.zip
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
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h4
1 files changed, 2 insertions, 2 deletions
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.