From a5ade073dcecb239f38ed2c39d56cc6b87d0ede0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E9=B1=BC=28iFish=29?= Date: Tue, 16 Aug 2016 02:51:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83EndPointInfo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/FSLib.Network/Http/HttpHandler.cs | 1 + src/FSLib.Network/Http/IEndPointInfo.cs | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) 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地址信息