#4256 defect new
FTP DTP not binding to correct IP Address
|Reported by:||alepra1||Owned by:|
|Cc:||pradu@…, Jean-Paul Calderone||Branch:|
When serving FTP on a box with multiple IP address, the DTP Protocol may bind to the wrong address when handling a PORT command.
For ex., I have a server with the following addresses: 192.168.1.8 - 192.168.1.9 - 192.168.1.10
When a connection to the FTP server is made on address 192.168.1.9, and an active file transfer is started, the DTP connection starts from 192.168.1.8
This may end up resulting in the impossibility to setup the data connection if the server is multi-homed.
I have attached a simple patch that seems to solve the problem for me, but is quite untested.