Let ftp command use only PORT(no EPRT) for IPv4 destination.

Because if ftpd is invoked with -R option, and EPRT is used via firewal
  or NAT which don't understand EPRT, then the data connection from ftpd
  to ftp client will fail.

Reported By: ume@mahoroba.org
Approved by: jkh
This commit is contained in:
Yoshinobu Inoue 2000-02-09 00:27:40 +00:00
parent b85666e879
commit d98d74772f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57067

View File

@ -1403,7 +1403,6 @@ noport:
#define UC(b) (((int)b)&0xff)
switch (daddr->su_family) {
case AF_INET:
#ifdef INET6
case AF_INET6:
#endif