Skip to content

Commit

Permalink
微调EndPointInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
iccfish committed Aug 15, 2016
1 parent c4f7ec1 commit a5ade07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/FSLib.Network/Http/HttpHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
8 changes: 4 additions & 4 deletions src/FSLib.Network/Http/IEndPointInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ public interface IEndPointInfo
/// </summary>
IPEndPoint RemoteEndPoint { get; }

///// <summary>
///// 获得本地终端信息
///// </summary>
//IPEndPoint LocalEndPoint { get; }
/// <summary>
/// 获得本地终端信息
/// </summary>
IPEndPoint LocalEndPoint { get; }

/// <summary>
/// 相关联的IP地址信息
Expand Down

0 comments on commit a5ade07

Please sign in to comment.