sudo do not respect environment variables for proxy
I have a setup with proxy enabled. Everything works fine in root shell and for ordinary user.
Running `sudo` brings problem as the proxy corresponding environment variables are not exported right.
To reproduce the problem I experience enable proxy and run `sudo wget www.google.com\`, it should block.
Typical problematic use cases are:
- sudo apk update|upgrade|add
- abuild -r
In both cases any web operations will be blocked as the proxy configuration is missed.
A temporary workaround could be to use `sudo -E`. I was suggested to edit /etc/sudoers to include http_proxy variables.
I consider that setup-proxy could take care of this.
(from redmine: issue id 10356, created on 2019-04-28)