Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5900 - gentoo-stats via proxy
Summary: gentoo-stats via proxy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Maik Schreiber
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-02 07:15 UTC by Nicolas Kaiser
Modified: 2002-10-04 17:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Kaiser 2002-08-02 07:16:00 UTC
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',
Comment 1 Maik Schreiber 2002-08-12 17:09:50 UTC
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.
Comment 2 Maik Schreiber 2002-10-04 17:09:47 UTC
Fixed for upcoming version 0.2. Thanks again!