Comments (2)
There is a Gist with changes made by Guillaume Pelletier (dotvision.com): https://gist.github.com/fubar-coder/32a1a6d859d12a9961e1a7e897a27900
from ftpserver.
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;
}
`
finally { listener.Stop(); _portQueue.Enqueue(dequeuedPort); }
from ftpserver.
Related Issues (20)
- UseImplicitTls throws error
- IFTPServer.Status Never Resets HOT 1
- Strange Filezilla behavior HOT 1
- Docker container PASV not able to connect HOT 4
- How to reject non-encrypted connections when I use the TLS function? HOT 2
- Cant stop the Server HOT 2
- LANG catalog loader - unnecessary NGettext dependency and debug log messages HOT 2
- ServerCertificate HOT 2
- BUG: FtpConnection.cs HOT 1
- FtpServerBuilderExtensionsForChecks.cs IFtpConnectionCheck HOT 1
- Memory leak because of Task.Delay(-1, token) HOT 3
- Bug inactivity timeout HOT 1
- Configure multiple command ports HOT 3
- Abnormal operation of DEMO program HOT 1
- How to make a directory read only
- Event/Trigger in server code when a new file was created by client
- Missing logger in XrmdCommandHandler and RmdCommandHandler
- A simple help wouldn't be bad at all friends 💥 HOT 1
- Disconnects from server every 60 seconds when using FTP and FTPS HOT 2
- InMemoryFileSystem documentation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ftpserver.