VirtualBox

Ignore:
Timestamp:
Apr 22, 2014 6:25:38 AM (11 years ago)
Author:
vboxsync
Message:

NAT: Replace loopback address with NATState::alias_addr in
227 Entering Passive Mode reply. This makes it posible to use plain
old passive mode to talk to an ftp server at a mapped host loopback.
(RFC2428 extended passive mode intentionally omits the address from
its 229 reply, so it works as-is, as it is designed to do).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/libalias/alias_ftp.c

    r39101 r51113  
    542542
    543543    if (state == 13) {
     544        if (addr != INADDR_LOOPBACK)
     545            la->true_addr.s_addr = htonl(addr);
     546        else
     547            la->true_addr.s_addr = la->pData->alias_addr.s_addr;
    544548        la->true_port = port;
    545         la->true_addr.s_addr = htonl(addr);
    546549        return (1);
    547550    } else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette