diff --git a/FluentFTP/Streams/FtpSocketStream.cs b/FluentFTP/Streams/FtpSocketStream.cs index 53eebc106..a5fc71abe 100644 --- a/FluentFTP/Streams/FtpSocketStream.cs +++ b/FluentFTP/Streams/FtpSocketStream.cs @@ -869,7 +869,7 @@ private IPAddress[] GetCachedHostAddresses(string host) { #else ipads = Dns.GetHostAddresses(host); #endif - Client.Status.CachedHostIpads.Add(host, ipads); + Client.Status.CachedHostIpads[host] = ipads; } return ipads; @@ -1019,7 +1019,7 @@ private async Task GetCachedHostAddressesAsync(string host, Cancell #else ipads = await Dns.GetHostAddressesAsync(host); #endif - Client.Status.CachedHostIpads.Add(host, ipads); + Client.Status.CachedHostIpads[host] = ipads; } return ipads;