aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Net
diff options
context:
space:
mode:
authorJim Cartlidge <jimcartlidge@yahoo.co.uk>2020-09-30 17:51:17 +0100
committerJim Cartlidge <jimcartlidge@yahoo.co.uk>2020-09-30 17:51:17 +0100
commitbbe2400b59563991f1689c68ef36d623afd39f0a (patch)
treede55a3473fb45d5edd0b1afab1b78099ba5cde73 /MediaBrowser.Common/Net
parent8c85cfd01d183b62badb0e8853f29c6a178c9e26 (diff)
Updating to NetCollection 1.03
Diffstat (limited to 'MediaBrowser.Common/Net')
-rw-r--r--MediaBrowser.Common/Net/INetworkManager.cs17
1 files changed, 14 insertions, 3 deletions
diff --git a/MediaBrowser.Common/Net/INetworkManager.cs b/MediaBrowser.Common/Net/INetworkManager.cs
index 32c017aee6..8789cd9d81 100644
--- a/MediaBrowser.Common/Net/INetworkManager.cs
+++ b/MediaBrowser.Common/Net/INetworkManager.cs
@@ -35,12 +35,23 @@ namespace MediaBrowser.Common.Net
NetCollection RemoteAddressFilter { get; }
/// <summary>
+ /// Gets or sets a value indicating whether iP6 is enabled.
+ /// </summary>
+ public bool IsIP6Enabled { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether iP4 is enabled.
+ /// </summary>
+ public bool IsIP4Enabled { get; set; }
+
+ /// <summary>
/// Calculates the list of interfaces to use for Kestrel.
/// </summary>
/// <returns>A NetCollection object containing all the interfaces to bind.
/// If all the interfaces are specified, and none are excluded, it returns zero items
/// to represent any address.</returns>
- NetCollection GetAllBindInterfaces();
+ /// <param name="individualInterfaces">When false, return <see cref="IPAddress.Any"/> or <see cref="IPAddress.IPv6Any"/> for all interfaces.</param>
+ NetCollection GetAllBindInterfaces(bool individualInterfaces = false);
/// <summary>
/// Returns a collection containing the loopback interfaces.
@@ -166,9 +177,9 @@ namespace MediaBrowser.Common.Net
/// eg. "eth1", or "TP-LINK Wireless USB Adapter".
/// </summary>
/// <param name="token">Token to parse.</param>
- /// <param name="result">Resultant object if successful.</param>
+ /// <param name="result">Resultant object's ip addresses, if successful.</param>
/// <returns>Success of the operation.</returns>
- bool TryParseInterface(string token, out IPNetAddress result);
+ bool TryParseInterface(string token, out NetCollection? result);
/// <summary>
/// Parses an array of strings into a NetCollection.