Menu

#39 Enable TFTPSend to use EPSV with IPV4

Release_35
open
nobody
5
2017-09-25
2017-09-25
No

TFTPSend unnecesarily limits the use of the EPSV command to IPV6.

EPSV is supported on IPV4 and makes certain use cases much simpler: the EPSV command usually returns only the port for the data connection, whereas the PASV command always returns an IP, that cannot be know in (for example) the case of a FTP server NATed behind a firewall with multiple IPV4 connections to the internet (I have exactly this case at this moment).

Just removing the IPV6 check in the TFTPSend.DataSocket fc enables TFTPSend to use EPSV with IPV4:

    if (*FSock.IP6used and*) not(FForceOldPort) and ((FTPCommand('EPSV ' + s) div 100) = 2) then

Best regards,
Mario

Discussion


Log in to post a comment.

MongoDB Logo MongoDB