Re: [Tails-dev] Tests without transparent proxying

Delete this message

Reply to this message
Author: alan
Date:  
To: tails-dev
Subject: Re: [Tails-dev] Tests without transparent proxying

> From: anonym <anonym@???>
> Date: Mon, 5 Dec 2011 02:08:39 +0100
>

[...]
>
> > - "Torify HTP" (that actually torifies wget):
>
> Woops...
>
> >     I'm surprised, again,
> >     to see wget does not take into account the http_proxy environment
> >     variable.

>
> Init scripts are supposed to be self-contained w.r.t. to environment,
> and in particular they don't load /etc/environment. Since there are
> potentially other reasons for the environment to get lost I feel it's
> safer to set the proxy it in wgetrc.
>

So what about:

    --- a/config/chroot_local-includes/etc/init.d/htpdate
    +++ b/config/chroot_local-includes/etc/init.d/htpdate
    @@ -47,7 +47,7 @@ log() {
     }


     do_start() {
    -       start-stop-daemon -S -q -p ${PIDFILE} -bm -x /usr/local/sbin/htpdate -- \
    +       start-stop-daemon -S -q -p ${PIDFILE} -bm -x http_proxy="http://127.0.0.1:8118/" /usr/local/sbin/htpdate -- \
                    -d \
                    -l "$LOG" \
                    -a "$HTTP_USER_AGENT" \


Cheers


--