aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ffe877ebd..dd8d5d7d4 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1076,6 +1076,8 @@ int main(int argc, char *argv[])
port = cmd_args.getU16("port");
else if(g_settings.exists("port"))
port = g_settings.getU16("port");
+ if(port == 0)
+ port = 30000;
// Map directory
std::string map_dir = porting::path_userdata+"/map";