From: PilzAdam Date: Fri, 12 Jul 2013 11:26:25 +0000 (+0200) Subject: Randomly choose singleplayer port X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=ab145c8827504b2b3c897c46e9e7df32cf6324a4;p=zefram%2Fminetest%2Fminetest_engine.git Randomly choose singleplayer port --- diff --git a/src/main.cpp b/src/main.cpp index 580260ad..8ed164d1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1654,7 +1654,7 @@ int main(int argc, char *argv[]) current_playername = "singleplayer"; current_password = ""; current_address = ""; - current_port = 30011; + current_port = myrand_range(49152, 65535); } else if (address != "") {