mirror of https://github.com/hykilpikonna/AquaDX
22 lines
587 B
C#
22 lines
587 B
C#
using AMDaemon.Allnet;
|
|
using AquaMai.Config.Attributes;
|
|
using HarmonyLib;
|
|
using Manager;
|
|
using Manager.Operation;
|
|
|
|
namespace AquaMai.Mods.Fix;
|
|
|
|
[ConfigSection(exampleHidden: true, defaultOn: true)]
|
|
public class FixCheckAuth
|
|
{
|
|
[HarmonyPostfix]
|
|
[HarmonyPatch(typeof(OperationManager), "CheckAuth_Proc")]
|
|
private static void PostCheckAuthProc(ref OperationData ____operationData)
|
|
{
|
|
if (Auth.GameServerUri.StartsWith("http://") || Auth.GameServerUri.StartsWith("https://"))
|
|
{
|
|
____operationData.ServerUri = Auth.GameServerUri;
|
|
}
|
|
}
|
|
}
|