Listen on Any IP

This commit is contained in:
BtbN
2019-06-02 16:18:14 +02:00
parent 1d02a431a7
commit 5b42887a77
4 changed files with 12 additions and 4 deletions

View File

@@ -60,11 +60,19 @@ namespace ClanServer.Controllers.Core
return data;
}
/*
<call model="L44:J:E:A:2018070901" srcid="0120100000706BE5919E" tag="j5UgAKA2">
<cardmng cardid="E0040100059CBB11" cardtype="1" method="getrefid" newflag="0" passwd="3215" />
</call>
*/
[HttpPost, XrpcCall("cardmng.getrefid")]
public ActionResult<EamuseXrpcData> GetRefId([FromBody] EamuseXrpcData data)
{
XElement cardmng = data.Document.Element("call").Element("cardmng");
string cardId = cardmng.Attribute("cardid").Value;
string passwd = cardmng.Attribute("passwd").Value;
//TODO: register new user
Console.WriteLine(data.Document);

View File

@@ -19,7 +19,7 @@ namespace ClanServer.Controllers.L44
{
XElement recommend = data.Document.Element("call").Element("recommend");
XElement player = recommend.Element("data").Element("player");
int jid = int.Parse(player.Element("jid").Value);
_ = int.Parse(player.Element("jid").Value);
int[] recommendedMusic = new int[]
{

View File

@@ -28,7 +28,7 @@ namespace ClanServer
private static void ConfigureKestrel(WebHostBuilderContext context, KestrelServerOptions options)
{
options.ListenLocalhost(Startup.Port);
options.ListenAnyIP(Startup.Port);
}
}
}

View File

@@ -16,8 +16,8 @@ namespace eAmuseTest
static void Main(string[] args)
{
string compress = "lz77";
string eamuse_info = "1-5cf3b7d3-1eda";
byte[] data = HexToBytes("8a38885f1b15801dcd1545ddb2d618b769fb3ca7d343874efe94ca4c2fa8b7f84d59ea217f70a1a41bfb8ee1871fe8beb25299629b8d01c668bf4c");
string eamuse_info = "1-5cf3b85e-05c0";
byte[] data = HexToBytes("854b2e42d2d861af365959912643533217b66b25393740e1111077ef87e98c7154a3f603");
compress = compress.ToLower();