I think it would be nice to be able to use gentoo-stats via http-proxy. Currently I'm using the below hardcoded settings. Would it be a good idea to make this an optional argument? diff -u /usr/sbin/gentoo-stats /usr/sbin/gentoo-stats.modified --- /usr/sbin/gentoo-stats Fri Aug 2 12:57:49 2002 +++ /usr/sbin/gentoo-stats.modified Fri Aug 2 12:56:59 2002 @@ -216,6 +221,7 @@ if ($arg0 =~ /^--new$/) { $ua = LWP::UserAgent->new(); + $ua->proxy('http','http://squid:3128'); $resp = $ua->request(GET 'http://gentoo.iq-computing.de/servlet/org.gentoo.stats.NewUserServlet'); $s = $resp->content; @@ -235,6 +241,7 @@ if ($num_args == 2) { $ua = LWP::UserAgent->new(); + $ua->proxy('http','http://squid:3128'); $resp = $ua->request(POST 'http://gentoo.iq-computing.de/servlet/org.gentoo.stats.StatsServlet', [ protocol => '2',
Thanks for the pointer of how to do it. Eventually there will be a config file where you can set those options. Please note that this is not a priority right now... lots of work to do :-/ My apologies.
Fixed for upcoming version 0.2. Thanks again!