Fixded localhost webservers are directed to the proxy if auto
authorChristian Schmidt <maniacikarus@ipfire.org>
Sat, 2 Apr 2011 12:32:31 +0000 (14:32 +0200)
committerChristian Schmidt <maniacikarus@ipfire.org>
Sat, 2 Apr 2011 12:32:31 +0000 (14:32 +0200)
configuration is used.

Fixes bug #770

config/rootfiles/core/49/filelists/files
html/cgi-bin/proxy.cgi

index 8b3200d..fc65e7a 100644 (file)
@@ -2924,6 +2924,7 @@ sub writepacfile
 if (
      (isPlainHostName(host)) ||
      (dnsDomainIs(host, ".$mainsettings{'DOMAINNAME'}")) ||
+     (isInNet(host, "127.0.0.1", "255.0.0")) ||
      (isInNet(host, "10.0.0.0", "255.0.0.0")) ||
      (isInNet(host, "172.16.0.0", "255.240.0.0")) ||
      (isInNet(host, "192.168.0.0", "255.255.0.0")) ||