Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*) Extending proxy autoconfig to avoid problems with multiple local n…
…etwork cards git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@816 6c8d7289-2bf4-0310-a012-ef5d649a1542
- Loading branch information
theli
committed
Sep 30, 2005
1 parent
595e0c7
commit 1d1b8f6
Showing
2 changed files
with
36 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
} | ||
} |