diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-08-12 21:38:54 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-08-12 21:38:54 +0200 |
| commit | 4c1286fd24139527f1fbd3db23e8d74e4d8da283 (patch) | |
| tree | 9b077639ccbc26fa3f413903f29ca5ade22142fe /MediaBrowser.Common | |
| parent | 60053c7f3d2ea6dbdeae5eecc8a46da23c672cd6 (diff) | |
Address comment
Diffstat (limited to 'MediaBrowser.Common')
| -rw-r--r-- | MediaBrowser.Common/Net/IPHost.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Common/Net/IPHost.cs b/MediaBrowser.Common/Net/IPHost.cs index e4f914250..1f125f2b1 100644 --- a/MediaBrowser.Common/Net/IPHost.cs +++ b/MediaBrowser.Common/Net/IPHost.cs @@ -348,7 +348,7 @@ namespace MediaBrowser.Common.Net } } - output = output[0..^1]; + output = output[..^1]; if (moreThanOne) { @@ -428,7 +428,7 @@ namespace MediaBrowser.Common.Net { try { - _addresses = Dns.GetHostAddresses(hostName); + _addresses = Dns.GetHostEntry(hostName).AddressList; } catch (SocketException ex) { |
