diff options
| author | lotus <lotus@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2009-06-03 19:03:03 +0000 |
|---|---|---|
| committer | lotus <lotus@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2009-06-03 19:03:03 +0000 |
| commit | efe97f446a82d90f658bc986b3563fcda29dcdbd (patch) | |
| tree | 3e5bfe002e984f4c6aff15d4a7a8201fa82fab37 /htroot/autoconfig.pac | |
| parent | cc49aedf129732223fb043622d32346ea8d82e82 (diff) | |
better proxy configuration in case of remote proxy
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6016 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot/autoconfig.pac')
| -rw-r--r-- | htroot/autoconfig.pac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/htroot/autoconfig.pac b/htroot/autoconfig.pac index 5ed509536..435e4587c 100644 --- a/htroot/autoconfig.pac +++ b/htroot/autoconfig.pac @@ -4,6 +4,9 @@ function FindProxyForURL(url,host) { return "DIRECT";
}
+ // not the proxy itself
+ if (host == "#[host]#") return "DIRECT";
+
// no local adresses
ip = dnsResolve(host);
if ( isInNet(ip, "127.0.0.0", "255.0.0.0")
@@ -13,6 +16,9 @@ function FindProxyForURL(url,host) { return "DIRECT";
}
+ // not the proxy itself (better: dnsResolve(#[host]#), but an additional lookup)
+ if (ip == "#[host]#") return "DIRECT";
+
// then
return "PROXY #[host]#:#[port]#, DIRECT";
}
\ No newline at end of file |
