From ab145c8827504b2b3c897c46e9e7df32cf6324a4 Mon Sep 17 00:00:00 2001
From: PilzAdam <pilzadam@minetest.net>
Date: Fri, 12 Jul 2013 13:26:25 +0200
Subject: [PATCH] Randomly choose singleplayer port

---
 src/main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.cpp b/src/main.cpp
index 580260ade..8ed164d1f 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 != "")
 				{
-- 
GitLab