Skip to content

Commit

Permalink
create default host prop, the value is 0.0.0.0:0
Browse files Browse the repository at this point in the history
  • Loading branch information
alec1o committed Dec 16, 2023
1 parent b3135f3 commit 7db293a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/host.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ using Netly.Core;
<br>

## Properties
- ##### <return>Host</return> Default
<sub>Return default Host instance, the default host is (0.0.0:0).</sub>

<br>

- ##### <return>IPAddress</return> Address
<sub>Return IPAddress (The IP address of the endpoint).</sub>

Expand Down
6 changes: 6 additions & 0 deletions src/Core/Host.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ namespace Netly.Core
/// </summary>
public class Host
{
/// <summary>
/// Return default Host instance: (0.0.0.0:0)
/// </summary>
/// <returns>Return default host instance: (0.0.0.0:0)</returns>
public static readonly Host Default = new Host(IPAddress.Any, 0);

/// <summary>
/// Return IPAddress
/// </summary>
Expand Down

0 comments on commit 7db293a

Please sign in to comment.