diff options
author | F1F7Y <64418963+F1F7Y@users.noreply.github.com> | 2022-06-16 22:51:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-16 22:51:08 +0200 |
commit | a3eaa83222a829530a797b3a7637f6e7fb6dead2 (patch) | |
tree | c273cc4dd72744a62b70e05cb8980730aa666824 /NorthstarDedicatedTest/serverauthentication.cpp | |
parent | 4487becdb849125d0161b0269070de7f395f688d (diff) | |
download | NorthstarLauncher-a3eaa83222a829530a797b3a7637f6e7fb6dead2.tar.gz NorthstarLauncher-a3eaa83222a829530a797b3a7637f6e7fb6dead2.zip |
Fix "Auth failed" when trying to play singleplayer (#184)v1.8.1-rc6v1.8.1-rc5v1.8.1
Diffstat (limited to 'NorthstarDedicatedTest/serverauthentication.cpp')
-rw-r--r-- | NorthstarDedicatedTest/serverauthentication.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/serverauthentication.cpp b/NorthstarDedicatedTest/serverauthentication.cpp index 4308dc68..2ef26479 100644 --- a/NorthstarDedicatedTest/serverauthentication.cpp +++ b/NorthstarDedicatedTest/serverauthentication.cpp @@ -245,7 +245,8 @@ bool ServerAuthenticationManager::AuthenticatePlayer(void* player, int64_t uid, // set persistent data as ready, we use 0x3 internally to mark the client as using local persistence *((char*)player + 0x4a0) = (char)0x3; - if (!CVar_ns_auth_allow_insecure->GetBool()) // no auth data and insecure connections aren't allowed, so dc the client + // no auth data and insecure connections aren't allowed, so dc the client + if (!CVar_ns_auth_allow_insecure->GetBool() && strncmp(GetCurrentPlaylistName(), "solo", 5) != 0) return false; // insecure connections are allowed, try reading from disk |