Testing #define for testing Master Server Listing by yourself, without a second IP address to host

Disabled by default
This commit is contained in:
toaster 2023-08-27 21:08:49 +01:00
parent 0935106189
commit c2148bf501

View file

@ -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)