Skip to content

Commit f721ed7

Browse files
committed
fix: Support proxy 'none' value to not load proxy from env
1 parent e1a782a commit f721ed7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Changes

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Revision history for GLPI agent
55
core:
66
* fix #851: glpi-agent should also try to request CONTACT after GLPI 10+ answer on PROLOG
77
* Reworked target responses caching for event handling
8+
* Support 'none' as proxy configuration to not try to use proxy set in environment variables
89

910
inventory:
1011
* On windows, don't cache system is not 64 bits for the service lifetime as this can

lib/GLPI/Agent/HTTP/Client.pm

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ sub new {
7777

7878
my $proxy = $params{proxy} || $config->{'proxy'};
7979
if ($proxy) {
80-
$self->{ua}->proxy(['http', 'https'], $proxy);
80+
$self->{ua}->proxy(['http', 'https'], $proxy)
81+
unless $proxy eq 'none';
8182
} else {
8283
$self->{ua}->env_proxy();
8384
}

0 commit comments

Comments
 (0)