diff options
| author | theli <theli@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2005-09-30 07:47:28 +0000 |
|---|---|---|
| committer | theli <theli@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2005-09-30 07:47:28 +0000 |
| commit | 1d1b8f699e67fa7023668770ff09d18f81f9fc43 (patch) | |
| tree | 26b2027036476b68f496ba3e4184fc23b953c3c8 /htroot/autoconfig.pac | |
| parent | 595e0c7e564d423bd2be4260eeabf173ac03d7c2 (diff) | |
*) Extending proxy autoconfig to avoid problems with multiple local network cards
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@816 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot/autoconfig.pac')
| -rw-r--r-- | htroot/autoconfig.pac | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/htroot/autoconfig.pac b/htroot/autoconfig.pac index 72c26ab36..adb138b3d 100644 --- a/htroot/autoconfig.pac +++ b/htroot/autoconfig.pac @@ -1,14 +1,10 @@ function FindProxyForURL(url,host) {
if ((isPlainHostName(host))||
- (host=="127.0.0.1"))
- {
- return "DIRECT";
-
- }
- else if (url.substring(0, 4) == "ftp:") {
- return "DIRECT";
- }
- else {
+ (host=="127.0.0.1")) {
+ return "DIRECT";
+ } else if (url.substring(0, 4).toLowerCase() == "ftp:") {
+ return "DIRECT";
+ } else {
return "PROXY #[host]#:#[port]#, DIRECT";
}
}
\ No newline at end of file |
