Per the documentation:
Domain - Domain to use, i.e. AF_INET or AF_INET6. This argument will be passed to the IO::Socket super class. This can be used to enforce IPv4 even with IO::Socket::IP which would default to IPv6. Family is accepted as alternative name for Domain.
So, something like:
my $ftp = Net::FTP->new ('ftp.foo.com', Domain => AF_INET);
🦛
In reply to Re: Net::FTP force IPV4
by hippo
in thread Net::FTP force IPV4
by averlon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |