You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Okay so this and #43 were blocking my ability to deploy via containers but I have resolved this as well. Looks like the way PASV is handled has shifted somewhat since the proposed GIST
Not sure how you want to pass the pasv port array to the handler but I did this hard coded just to get me by for right now.
public class PasvCommandHandler : FtpCommandHandler { static ConcurrentQueue<int> _portQueue = new ConcurrentQueue<int>(Enumerable.Range(8000, 30)); }
int dequeuedPort;
while (!_portQueue.TryDequeue(out dequeuedPort)) { }
int port;
var isEpsv = string.Equals(command.Name, "EPSV", StringComparison.OrdinalIgnoreCase);
if (isEpsv)
{
if (string.IsNullOrEmpty(command.Argument) || string.Equals(command.Argument, "ALL", StringComparison.OrdinalIgnoreCase))
{
port = dequeuedPort;
}
else
{
port = Convert.ToInt32(command.Argument, 10);
}
}
else
{
port = dequeuedPort;
}
This seems to be required when the FTP server is used as Azure service with public/accessible end points.
The text was updated successfully, but these errors were encountered: