SPUG: CPAN & passive ftp?
Creede Lambard
creede at penguinsinthenight.com
Thu Apr 25 01:27:29 CDT 2002
On Wed, 24 Apr 2002, dancerboy wrote:
> So, I've been having all sorts of weird behaviour with CPAN on my
> MacOS X box at home, and I suddenly realized what I think the problem
> is: my firewall setup requires that I do all my ftp'ing in passive
> mode. I've looked through the CPAN configuration options, and can't
> seem to find anything that would tell it to do it's ftp'ing
> passively. Is there a way to do this?
>
> -jason
>
I think ncftpget (one of the methods CPAN can use) uses passive mode as a
default.
I don't know whether lynx -source uses passive mode or not. It might use
http, which would bypass the question entirely.
In the main CPAN module there's a line that says
my $ftp = Net::FTP->new($host);
You should be able to force passive mode by changing that line to
my $ftp = Net::FTP->new($host, Passive=>1);
I think. :)
Hopefully one of those will work for you. Good luck!
Caveat: I haven't tried this, so save a backup.
* .~. `( ---------------------------------------------------------
` / V \ . Creede Lambard : Never rush a miracle man.
/( )\ creede at penguinsinthenight.com : You get rotten miracles.
^^-^^ ---------------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org
More information about the spug-list
mailing list