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

View File

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