diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2023-01-19 19:03:43 +0100 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2023-01-19 19:03:43 +0100 |
| commit | 6e460754142380eb7d2a509ee41b58e6a1c1665f (patch) | |
| tree | 8192d31affda58d3b3174fb6b400f757b5431c11 /RSSDP/SsdpCommunicationsServer.cs | |
| parent | 6954283af3b5c75d38aa1bf2a399538fb19a8f0f (diff) | |
Apply review suggestions
Diffstat (limited to 'RSSDP/SsdpCommunicationsServer.cs')
| -rw-r--r-- | RSSDP/SsdpCommunicationsServer.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/RSSDP/SsdpCommunicationsServer.cs b/RSSDP/SsdpCommunicationsServer.cs index da357546d..fb5a66aa1 100644 --- a/RSSDP/SsdpCommunicationsServer.cs +++ b/RSSDP/SsdpCommunicationsServer.cs @@ -336,13 +336,15 @@ namespace Rssdp.Infrastructure private List<ISocket> ListenForBroadcasts() { var sockets = new List<ISocket>(); + var nonNullBindAddresses = _networkManager.GetInternalBindAddresses().Where(x => x.Address != null); + if (_enableMultiSocketBinding) { - foreach (var address in _networkManager.GetInternalBindAddresses()) + foreach (var address in nonNullBindAddresses) { if (address.AddressFamily == AddressFamily.InterNetworkV6) { - // Not support IPv6 right now + // Not supporting IPv6 right now continue; } @@ -379,7 +381,7 @@ namespace Rssdp.Infrastructure { if (address.AddressFamily == AddressFamily.InterNetworkV6) { - // Not support IPv6 right now + // Not supporting IPv6 right now continue; } |
