git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@816 6c8d7289-2bf4-0310-a012-ef5d649a1542pull/1/head
parent
595e0c7e56
commit
1d1b8f699e
@ -1,14 +1,10 @@
|
|||||||
function FindProxyForURL(url,host) {
|
function FindProxyForURL(url,host) {
|
||||||
if ((isPlainHostName(host))||
|
if ((isPlainHostName(host))||
|
||||||
(host=="127.0.0.1"))
|
(host=="127.0.0.1")) {
|
||||||
{
|
|
||||||
return "DIRECT";
|
return "DIRECT";
|
||||||
|
} else if (url.substring(0, 4).toLowerCase() == "ftp:") {
|
||||||
}
|
return "DIRECT";
|
||||||
else if (url.substring(0, 4) == "ftp:") {
|
} else {
|
||||||
return "DIRECT";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return "PROXY #[host]#:#[port]#, DIRECT";
|
return "PROXY #[host]#:#[port]#, DIRECT";
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue