summaryrefslogtreecommitdiff
path: root/src/game.cpp
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/game.cpp
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/game.cpp')
-rw-r--r--src/game.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 7d4dd0e04..f2a76d763 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -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;
}