Doesn't work in linux
Closed this issue · 6 comments
NickG123 commented
Attempting to call ftpClient.LoginAsync() on Linux results in the following exception:
This platform does not support connecting sockets to DNS endpoints via the instance Connect and ConnectAsync methods, due to the potential for a host name to map to multiple IP addresses and sockets becoming invalid for use after a failed connect attempt. Use the static ConnectAsync method, or provide to the instance methods the specific IPAddress desired.
This is the result of https://github.com/dotnet/corefx/issues/8768
NickG123 commented
Awesome, thanks for the quick response and a great library overall!
NickG123 commented
Sorry, I am actually still running into problems.
The client appears to still be calling .connect using the hostname when opening a data socket:
CoreFTP/src/CoreFtp/FtpClient.cs
Line 644 in d76b429
Thanks,
Nick
sparkeh9 commented
Whoops - forgot to make the change in the data socket too!
NickG123 commented
Seems to be working fine! Thanks a lot.
Nick