diff --git a/FastTunnel.Client/appsettings.json b/FastTunnel.Client/appsettings.json
index d0c6540..1975247 100644
--- a/FastTunnel.Client/appsettings.json
+++ b/FastTunnel.Client/appsettings.json
@@ -27,7 +27,7 @@
// [必选] 内网站点所在内网的ip
"LocalIp": "127.0.0.1",
// [必选] 内网站点监听的端口号
- "LocalPort": 8080,
+ "LocalPort": 8090,
// [必选] 子域名, 访问本站点时的url为 http://${SubDomain}.${WebDomain}:${ServerPort}
"SubDomain": "test"
diff --git a/FastTunnel.Core/FastTunnel.Core.csproj b/FastTunnel.Core/FastTunnel.Core.csproj
index e1716d9..a2ec8f9 100644
--- a/FastTunnel.Core/FastTunnel.Core.csproj
+++ b/FastTunnel.Core/FastTunnel.Core.csproj
@@ -4,6 +4,9 @@
README.md
net6.0;net7.0
+
+
+
diff --git a/FastTunnel.Core/Forwarder/Kestrel/FastTunnelConnectionContext.cs b/FastTunnel.Core/Forwarder/Kestrel/MiddleWare/FastTunelProtocol.cs
similarity index 74%
rename from FastTunnel.Core/Forwarder/Kestrel/FastTunnelConnectionContext.cs
rename to FastTunnel.Core/Forwarder/Kestrel/MiddleWare/FastTunelProtocol.cs
index 4723f77..4ab9406 100644
--- a/FastTunnel.Core/Forwarder/Kestrel/FastTunnelConnectionContext.cs
+++ b/FastTunnel.Core/Forwarder/Kestrel/MiddleWare/FastTunelProtocol.cs
@@ -8,59 +8,43 @@ using System;
using System.Buffers;
using System.Collections.Generic;
using System.IO.Pipelines;
+using System.Linq;
+using System.Reflection.PortableExecutable;
using System.Text;
using System.Threading.Tasks;
using FastTunnel.Core.Models;
using FastTunnel.Core.Protocol;
using FastTunnel.Core.Server;
using Microsoft.AspNetCore.Connections;
-using Microsoft.AspNetCore.Http.Features;
-using Microsoft.Extensions.Logging;
+using Microsoft.Extensions.FileSystemGlobbing;
-namespace FastTunnel.Core.Forwarder.Kestrel;
-internal class FastTunnelConnectionContext : ConnectionContext
+namespace FastTunnel.Core.Forwarder.Kestrel.MiddleWare;
+
+public class FastTunelProtocol
{
- private readonly ConnectionContext _inner;
- private readonly FastTunnelServer fastTunnelServer;
- private readonly ILogger _logger;
-
- public FastTunnelConnectionContext(ConnectionContext context, FastTunnelServer fastTunnelServer, ILogger logger)
+ public FastTunelProtocol(ConnectionContext context, FastTunnelServer fastTunnelServer)
{
+ this.context = context;
this.fastTunnelServer = fastTunnelServer;
- this._inner = context;
- this._logger = logger;
}
- public override IDuplexPipe Transport { get => _inner.Transport; set => _inner.Transport = value; }
-
- public override string ConnectionId { get => _inner.ConnectionId; set => _inner.ConnectionId = value; }
-
- public override IFeatureCollection Features => _inner.Features;
-
- public override IDictionary