diff --git a/HybirdFrameworkDriver/TcpServer/TcpServer.cs b/HybirdFrameworkDriver/TcpServer/TcpServer.cs
index bb5096d..1da7a28 100644
--- a/HybirdFrameworkDriver/TcpServer/TcpServer.cs
+++ b/HybirdFrameworkDriver/TcpServer/TcpServer.cs
@@ -35,7 +35,7 @@ public class TcpServer
: IDisposable where TH : IChannelHandler
public Action? ChannelInActiveAction { get; set; }
- public TcpServer()
+ public void InitBootstrap()
{
if (LogLevel != null)
@@ -131,6 +131,7 @@ public class TcpServer | : IDisposable where TH : IChannelHandler
{
_port = port;
Log.Info(" Start Listen");
+ InitBootstrap();
Task? channel = bootstrap?.BindAsync(_port);
Log.Info($"netty success listen {_port}");
}
|