aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/masterserver.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-09-09 16:01:01 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-09-09 16:01:01 +0100
commitfc0e6630fb6dccbeeca6ea65c061824cd7a848e1 (patch)
tree04965579e99b5920f9bbd2c5b6e8b5d12d79b7bb /NorthstarDedicatedTest/masterserver.cpp
parentfb82ecfec5893b00f68b72f912c6b3975b5fdb4f (diff)
downloadNorthstarLauncher-fc0e6630fb6dccbeeca6ea65c061824cd7a848e1.tar.gz
NorthstarLauncher-fc0e6630fb6dccbeeca6ea65c061824cd7a848e1.zip
add IsValveMod patches
Diffstat (limited to 'NorthstarDedicatedTest/masterserver.cpp')
-rw-r--r--NorthstarDedicatedTest/masterserver.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/masterserver.cpp b/NorthstarDedicatedTest/masterserver.cpp
index aecf2f1a..d82be8f0 100644
--- a/NorthstarDedicatedTest/masterserver.cpp
+++ b/NorthstarDedicatedTest/masterserver.cpp
@@ -358,7 +358,12 @@ void MasterServerManager::AddSelfToServerList(int port, int authPort, char* name
return;
if (!Cvar_ns_report_sp_server_to_masterserver->m_nValue && !strncmp(map, "sp_", 3))
+ {
+ m_bRequireClientAuth = false;
return;
+ }
+
+ m_bRequireClientAuth = true;
std::thread requestThread([this, port, authPort, name, description, map, playlist, maxPlayers, password] {
httplib::Client http(Cvar_ns_masterserver_hostname->m_pszString, Cvar_ns_masterserver_port->m_nValue);