From 139cb2dac144cc7d5c750f94b43a8c448d2f093e Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 23 May 2013 07:24:46 +0200 Subject: [PATCH] avoid using HTTP_PROXY environment variable People run into problems on upgrades, for example: export http_proxy=http://172.xxx.xxx.xxx:8888/ aptitude update && aptitude full-upgrade This restarts pveproxy, and after that login was no longer possible. Another way to reproduce the bug is: http_proxy=http://1.2.3.4:8888/ pveproxy --debug --- PVE/HTTPServer.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/HTTPServer.pm b/PVE/HTTPServer.pm index 545d64b6f..c4247f1d6 100755 --- a/PVE/HTTPServer.pm +++ b/PVE/HTTPServer.pm @@ -326,6 +326,7 @@ sub proxy_request { headers => $headers, timeout => 30, recurse => 0, + proxy => undef, # avoid use of $ENV{HTTP_PROXY} keepalive => $keep_alive, body => $content, tls_ctx => $self->{tls_ctx},