G-cpan seems to detect proxy settings and then write these settings to ~/.cpan/CPAN/MyConfig.pm : root@lynx:/root(11)# grep -i proxy .cpan/CPAN/MyConfig.pm 'ftp_proxy' => q[http://10.101.10.254:3128], 'http_proxy' => q[http://10.101.10.254:3128], 'no_proxy' => q[], If I then change the location of my laptop to an other network g-cpan still tries to access the proxy 10.101.10.254. I can solve this problem by removing ~/.cpan after changing the network, but it would be more convenient, if there is no proxy entry in ~/.cpan/CPAN/MyConfig.pm. Reproducible: Always
No, detecting the proxy is the best action here. You should run it with ftp_proxy='' http_proxy='' when generating the config, so that it ignores your proxy settings.