socksParentProxy via web interface

[email protected]
Newsgroups gmane.comp.web.polipo.user
Message-ID <20090129203041.GA4882@ugu>
G'day,

I'm running polipo with a socksParentProxy, but sometimes I want to turn
it off. Unfortunately, polipo exits if I enter an empty socksParentProxy
in the web configuration interface.

Attached patch checks for this (I merely copied the conditions from
server.c).

-- 
--  Rogutės Sparnuotos

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword

_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users
polipo_spp_webconfig.patch (text/plain, 289 B)
diff -rN old-polipo-build/socks.c new-polipo-build/socks.c
123a124,131
>     if(socksParentProxy != NULL && socksParentProxy->length == 0) {
>         releaseAtom(socksParentProxy);
>         socksParentProxy = NULL;
>     }
>     
>     if(socksParentProxy == NULL)
>         return;
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.