Changeset 217 for client


Ignore:
Timestamp:
12/29/10 09:13:34 (13 years ago)
Author:
nanardon
Message:
  • honor proxy settings
Location:
client/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • client/trunk/bin/sophie

    r210 r217  
    1616    't=s' => \my $type, 
    1717    'd=s' => \my @options, 
     18    'proxy' => \my $proxy, 
    1819    'daemon' => \my $daemon, 
    1920 
     
    3738    $pass        ||= $config{pass}; 
    3839    $daemon      ||= $config{daemon}; 
     40    $proxy       ||= $config{proxy}; 
    3941} 
    4042 
     
    4446    password => $pass, 
    4547    type => $type, 
     48    proxy => $proxy, 
    4649); 
    4750 
  • client/trunk/lib/Sophie/Client.pm

    r216 r217  
    1717    ); 
    1818    $self->timeout(20) if ($self->can('timeout')); 
     19    if ($options{proxy}) { 
     20        $self->useragent->proxy([ 'http' ], $options{proxy}); 
     21    } else { 
     22        $self->useragent->env_proxy; 
     23    } 
     24 
    1925    $self->{options} = { %options }; 
     26 
    2027 
    2128    if ($options{login}) { 
Note: See TracChangeset for help on using the changeset viewer.