- Downgrade deps to fix current connection reset error
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
<PackageReference Include="Microsoft.Data.Sqlite" Version="9.0.0" />
|
<PackageReference Include="Microsoft.Data.Sqlite" Version="9.0.0" />
|
||||||
<PackageReference Include="Pidgin" Version="3.3.0" />
|
<PackageReference Include="Pidgin" Version="3.3.0" />
|
||||||
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.11" />
|
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.11" />
|
||||||
<PackageReference Include="Watson.Lite" Version="6.3.13" />
|
<PackageReference Include="Watson.Lite" Version="6.3.9" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
using System.Net;
|
|
||||||
using System.Web;
|
using System.Web;
|
||||||
using ChatTwo.Code;
|
|
||||||
using ChatTwo.Http.MessageProtocol;
|
using ChatTwo.Http.MessageProtocol;
|
||||||
using ChatTwo.Util;
|
using ChatTwo.Util;
|
||||||
using Lumina.Data.Files;
|
using Lumina.Data.Files;
|
||||||
@@ -201,14 +199,14 @@ public class RouteController
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
var channel = JsonConvert.DeserializeObject<IncomingChannel>(ctx.Request.DataAsString, JsonSettings);
|
var channel = JsonConvert.DeserializeObject<IncomingChannel>(ctx.Request.DataAsString, JsonSettings);
|
||||||
if (!Enum.IsDefined((InputChannel)channel.Channel))
|
if (!Enum.IsDefined(channel.Channel))
|
||||||
{
|
{
|
||||||
ctx.Response.StatusCode = 400;
|
ctx.Response.StatusCode = 400;
|
||||||
await ctx.Response.Send(JsonConvert.SerializeObject(new ErrorResponse("Invalid channel received.")));
|
await ctx.Response.Send(JsonConvert.SerializeObject(new ErrorResponse("Invalid channel received.")));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await Plugin.Framework.RunOnFrameworkThread(() => { Plugin.ChatLogWindow.SetChannel((InputChannel)channel.Channel); });
|
await Plugin.Framework.RunOnFrameworkThread(() => { Plugin.ChatLogWindow.SetChannel(channel.Channel); });
|
||||||
|
|
||||||
ctx.Response.StatusCode = 201;
|
ctx.Response.StatusCode = 201;
|
||||||
await ctx.Response.Send(JsonConvert.SerializeObject(new OkResponse("Channel switch was initiated.")));
|
await ctx.Response.Send(JsonConvert.SerializeObject(new OkResponse("Channel switch was initiated.")));
|
||||||
|
|||||||
@@ -50,12 +50,12 @@
|
|||||||
},
|
},
|
||||||
"Watson.Lite": {
|
"Watson.Lite": {
|
||||||
"type": "Direct",
|
"type": "Direct",
|
||||||
"requested": "[6.3.13, )",
|
"requested": "[6.3.9, )",
|
||||||
"resolved": "6.3.13",
|
"resolved": "6.3.9",
|
||||||
"contentHash": "AoDQXFPTf/C38Afj4A1p+Siw46sqgr6SOZV6tL2gWmfoAAuiCJ3DymCD9OcY2ZasvvDOQk2NDNSLyXthkS5xhg==",
|
"contentHash": "sDigTY8D8V7W38lfzJGiigf7xZEfp3Kw7XE7VJyeNO9mxOkv+w8HcmCsmORMDhsipDqGU0gMEsPOqORmZzRaWg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"CavemanTcp": "2.0.9",
|
"CavemanTcp": "2.0.9",
|
||||||
"Watson.Core": "6.3.13"
|
"Watson.Core": "6.3.9"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"CavemanTcp": {
|
"CavemanTcp": {
|
||||||
@@ -148,8 +148,8 @@
|
|||||||
},
|
},
|
||||||
"Watson.Core": {
|
"Watson.Core": {
|
||||||
"type": "Transitive",
|
"type": "Transitive",
|
||||||
"resolved": "6.3.13",
|
"resolved": "6.3.9",
|
||||||
"contentHash": "f1qVBxEOYvRGNVfqoQDBuRK5lMsfYRpsWxv9qRiGH22eRtXvvaloQbxeouVtd1X2oiamdICPNAAhBVj/KYZ9Mw==",
|
"contentHash": "hGoadE4SLbko8yxhx5+nxGV8lEVgEquNli87lN6/eOTQEJNpK/Cs+OF0etTgFKZ4p0u5ivetoDxl82Lg6oHZEg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"IpMatcher": "1.0.5",
|
"IpMatcher": "1.0.5",
|
||||||
"RegexMatcher": "1.0.9",
|
"RegexMatcher": "1.0.9",
|
||||||
|
|||||||
Reference in New Issue
Block a user