Network Proxy GUI: sets no_proxy to match any url
Submitted by Danny Lawrence
Link to original bug (#619780)
Description
Overview:
Network Proxy GUI, sets no_proxy env variable with extra comma at the end of the environment variable no_proxy. this causes the no_proxy variable to match every url.
Steps to Reproduce:
-
Open Network proxy ( Preferences > Network Proxy )
-
On the second tab (Ignored Hosts), add at-least 'localhost'
-
On the first tab (Proxy Configuration) Add a manual proxy
-
On the first tab (Proxy Configuration) Click Apply system wide.
-
open a termnial - Display the current no_proxy environment variable
% env | grep -i no_proxy
NO_PROXY=localhost,127.0.0.0/8,.local,
no_proxy=localhost,127.0.0.0/8,.local,
- Try a wget to a url
% wget http://www.gnome.org/
--2010-05-27 14:58:06-- http://www.gnome.org/
Resolving www.gnome.org... 209.132.180.167
Connecting to www.gnome.org|209.132.180.167|:80...
Expected Results:
The wget will not use the proxy ( http_proxy or ftp_proxy )
Workaround:
% env |grep -i no_proxy
NO_PROXY=localhost,127.0.0.0/8,.local,
no_proxy=localhost,127.0.0.0/8,.local,
% export NO_PROXY=$(echo NO_PROXY | sed 's/,
//')
echo $NO_PROXY
localhost,127.0.0.0/8,.local
% export no_proxy=$NO_PROXY
% env |grep -i no_proxy
NO_PROXY=localhost,127.0.0.0/8,.local
no_proxy=localhost,127.0.0.0/8,*.local
wget http://www.gnome.org/ 15:02
--2010-05-27 15:02:30-- http://www.gnome.org/
Resolving itproxy-farm.XXXX.com.au... 10.64.3.2
Connecting to itproxy-farm.XXXX.com.au|10.64.3.2|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html.2'
[ <=> ] 7,798 --.-K/s in 0.004s
2010-05-27 15:02:31 (1.78 MB/s) - `index.html.2' saved [7798]
Version: 2.30.x
Resolution: RESOLVED DUPLICATE