On Wed, 26 Mar 2008 12:32:49 -0400
[EMAIL PROTECTED] wrote:
 
> Odd, I have the same setup and I don't see the issue with polipo.  I
> have polipo setup as S20polipo in /etc/rc3.d and it seems to work just
> fine.  Even when I switch from wired to wireless, and dhcp takes up to
> 90 seconds, polipo doesn't require a restart.  What errors do you see if
> you try to use polipo without restarting it?

Well if I use it without restarting I get a message telling: "object not in 
cache". That's the problem because it will be started with the 
proxyOFFLINE=true option if polipo is started before the network connection has 
established. 

But a fiend of mine has written a patch for it before a few minutes which seems 
to have the problem solved. I made it in the attachment. With this patch the 
config-Option proxyOffline=false will be respected during the start of polipo.

greets


--- polipo-control	2008-03-26 15:48:09.000000000 +0000
+++ polipo-control.new	2008-03-26 16:24:12.000000000 +0000
@@ -21,7 +21,7 @@
 offlineMode() {
         # At the moment this only depends on the presence of a default route
         # Eventually this will be configurable via $OPTION_FILE
-        if /sbin/route -n | grep  ^0.0.0.0 > /dev/null; then
+        if  [ `cat /etc/polipo/config | grep proxyOffline | sed s/' '//g | sed s/proxyOffline=//` = "false" ] || /sbin/route -n | grep  ^0.0.0.0 > /dev/null;then
                 # We have a default route - go online
                 echo -n false
         else
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to