diff --git a/src/FSLib.Network/Http/HttpHandler.cs b/src/FSLib.Network/Http/HttpHandler.cs index 12cea66..00693d8 100644 --- a/src/FSLib.Network/Http/HttpHandler.cs +++ b/src/FSLib.Network/Http/HttpHandler.cs @@ -100,6 +100,7 @@ protected virtual IPEndPoint BindIPEndPoint(HttpContext context, Uri uri, string if (remoteEndPoint.AddressFamily != localEndPoint.AddressFamily) throw new IPAddressFamilyMismatchException(remoteEndPoint, localEndPoint); + ef.LocalEndPoint = localEndPoint; return localEndPoint; } diff --git a/src/FSLib.Network/Http/IEndPointInfo.cs b/src/FSLib.Network/Http/IEndPointInfo.cs index 184ef49..4867d80 100644 --- a/src/FSLib.Network/Http/IEndPointInfo.cs +++ b/src/FSLib.Network/Http/IEndPointInfo.cs @@ -12,10 +12,10 @@ public interface IEndPointInfo /// IPEndPoint RemoteEndPoint { get; } - ///// - ///// 获得本地终端信息 - ///// - //IPEndPoint LocalEndPoint { get; } + /// + /// 获得本地终端信息 + /// + IPEndPoint LocalEndPoint { get; } /// /// 相关联的IP地址信息