"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/Ocsinventory/Agent/Network.pm" between
Ocsinventory-Unix-Agent-2.6.1.tar.gz and Ocsinventory-Unix-Agent-2.8.0.tar.gz

About: Ocsinventory-Agent is a Linux agent for OCS Inventory NG.

Network.pm  (Ocsinventory-Unix-Agent-2.6.1):Network.pm  (Ocsinventory-Unix-Agent-2.8.0)
skipping to change at line 46 skipping to change at line 46
} }
} else { } else {
$self->{URI} = "http://".$self->{config}->{server}.$self->{config}->{rem otedir}; $self->{URI} = "http://".$self->{config}->{server}.$self->{config}->{rem otedir};
$uaserver = $self->{config}->{server}; $uaserver = $self->{config}->{server};
} }
$self->{compress} = new Ocsinventory::Compress ({logger => $logger}); $self->{compress} = new Ocsinventory::Compress ({logger => $logger});
# Connect to server # Connect to server
$self->{ua} = LWP::UserAgent->new(keep_alive => 1); $self->{ua} = LWP::UserAgent->new(keep_alive => 1);
if ($self->{config}->{proxy}) { if ($self->{config}->{proxy}) {
$self->{ua}->proxy(['http', 'https'], $self->{config}->{proxy}); $self->{ua}->proxy(['http', 'https'], 'connect://'.$self->{config}->{pro xy}.'');
} else { } else {
$self->{ua}->env_proxy; $self->{ua}->env_proxy;
} }
my $version = 'OCS-NG_unified_unix_agent_v'; my $version = 'OCS-NG_unified_unix_agent_v';
$version .= exists ($self->{config}->{VERSION})?$self->{config}->{VERSION}:' '; $version .= exists ($self->{config}->{VERSION})?$self->{config}->{VERSION}:' ';
my $userencrypt = Ocsinventory::Agent::Encrypt::getClearText($self->{config} ->{user}); my $userencrypt = Ocsinventory::Agent::Encrypt::getClearText($self->{config} ->{user});
my $pwdencrypt = Ocsinventory::Agent::Encrypt::getClearText($self->{config}- >{password}); my $pwdencrypt = Ocsinventory::Agent::Encrypt::getClearText($self->{config}- >{password});
$self->{ua}->agent($version); $self->{ua}->agent($version);
$self->{ua}->credentials( $self->{ua}->credentials(
$uaserver, # server:port, port is needed $uaserver, # server:port, port is needed
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)