diff --git a/docs/host.md b/docs/host.md index 526a2ab1..bd0028ea 100644 --- a/docs/host.md +++ b/docs/host.md @@ -18,6 +18,11 @@ using Netly.Core;
## Properties +- ##### Host Default + Return default Host instance, the default host is (0.0.0:0). + +
+ - ##### IPAddress Address Return IPAddress (The IP address of the endpoint). diff --git a/src/Core/Host.cs b/src/Core/Host.cs index 3762307c..ae5dabeb 100644 --- a/src/Core/Host.cs +++ b/src/Core/Host.cs @@ -9,6 +9,12 @@ namespace Netly.Core /// public class Host { + /// + /// Return default Host instance: (0.0.0.0:0) + /// + /// Return default host instance: (0.0.0.0:0) + public static readonly Host Default = new Host(IPAddress.Any, 0); + /// /// Return IPAddress ///