Core/Bnet: Send hostnames in portal requests for launcherlogin

Port From (https://github.com/TrinityCore/TrinityCore/commit/8b426af763a9d51524538cebbf615595f94a99a4)
This commit is contained in:
hondacrx
2023-09-02 15:35:49 -04:00
parent 469c5ef862
commit 34ce07f880
2 changed files with 24 additions and 31 deletions
@@ -43,7 +43,7 @@ namespace BNetServer.Networking
ChallengeExternalRequest externalChallenge = new();
externalChallenge.PayloadType = "web_auth_url";
externalChallenge.Payload = ByteString.CopyFromUtf8($"https://{hostname}/bnetserver/login/");
externalChallenge.Payload = ByteString.CopyFromUtf8($"https://{Global.LoginServiceMgr.GetHostnameForClient(GetRemoteIpEndPoint())}:{Global.LoginServiceMgr.GetPort()}/bnetserver/login/");
SendRequest((uint)OriginalHash.ChallengeListener, 3, externalChallenge);
return BattlenetRpcErrorCode.Ok;