367 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
14 lines
719 B
Diff
14 lines
719 B
Diff
--- a/src/server/bnetserver/REST/LoginRESTService.cpp
|
|
+++ b/src/server/bnetserver/REST/LoginRESTService.cpp
|
|
@@ -741,6 +741,10 @@
|
|
|
|
context.response.set(boost::beast::http::field::content_type, "application/json;charset=utf-8");
|
|
context.response.body() = ::JSON::Serialize(challenge);
|
|
+ // 70334 requires this field in addition to the complete SRP parameters.
|
|
+ // Local opt-in keeps the original credential-proof verification unchanged.
|
|
+ if (sConfigMgr->GetBoolDefault("Gateway.LocalSrpCompatibility", false) && session->GetRemoteIpAddress().is_loopback())
|
|
+ context.response.body().insert(1, "\"use_srp\":true,");
|
|
session->SendResponse(context);
|
|
}));
|
|
|