This repository has been archived on 2024-03-29. You can view files and clone it, but cannot push or open issues or pull requests.
FreeSR/FreeSR.Dispatch/Handlers/QueryGatewayHandler.cs

35 lines
1.3 KiB
C#
Raw Normal View History

2024-01-27 13:06:07 +00:00
namespace FreeSR.Dispatch.Handlers
{
using Ceen;
using FreeSR.Dispatch.Util;
using FreeSR.Proto;
using System.Threading.Tasks;
internal class QueryGatewayHandler : IHttpModule
{
public async Task<bool> HandleAsync(IHttpContext context)
{
context.Response.StatusCode = HttpStatusCode.OK;
context.Response.ContentType = "text/plain";
await context.Response.WriteAllAsync(Convert.ToBase64String(ProtobufUtil.Serialize(new Gateserver
{
Retcode = Retcode.RETCODE_RET_SUCC,
Msg = "OK",
Ip = "127.0.0.1",
RegionName = "FreeSR",
Port = 22301,
Mljaogdhcki = true,
LoginWhiteMsg = "Access verification failed. Please check if you have logged in to the correct account and server.",
Jcdlppbocpe = true,
Gifijbibiin = true,
Ibplbfhmgkf = true,
MbResVersion = "5335706",
AssetBundleUrl = "https://autopatchos.starrails.com/asb/V1.3Live/output_5355192_0007722cfc",
ExResourceUrl = "https://autopatchos.starrails.com/design_data/V1.3Live/output_5371504_9fdb2fe63e",
})));
return true;
}
}
}