From c2148bf501f6f5decf387fb46d8f4e568e60de2c Mon Sep 17 00:00:00 2001 From: toaster Date: Sun, 27 Aug 2023 21:08:49 +0100 Subject: [PATCH] Testing #define for testing Master Server Listing by yourself, without a second IP address to host Disabled by default --- src/http-mserv.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/http-mserv.c b/src/http-mserv.c index d47122cbf..368f1cdda 100644 --- a/src/http-mserv.c +++ b/src/http-mserv.c @@ -441,7 +441,12 @@ HMS_fetch_servers (msg_server_t *list, int query_id) break; #endif +//#define MSERVTESTALONE +#ifdef MSERVTESTALONE + strcpy(list[i].ip, "127.0.0.1"); // MS test without needing a second person to host +#else strlcpy(list[i].ip, address, sizeof list[i].ip); +#endif strlcpy(list[i].port, port, sizeof list[i].port); if (contact)