|
Revision 7346, 1.1 kB
(checked in by otsune, 10 months ago)
|
|
config/proxy.pac/dolipo/otsune-proxy.pac: remove domain.move to uncachable
|
| Line | |
|---|
| 1 | function FindProxyForURL(url, host) |
|---|
| 2 | { |
|---|
| 3 | // variable strings to return |
|---|
| 4 | var proxy_yes = "PROXY 127.0.0.1:8123; DIRECT"; |
|---|
| 5 | var proxy_no = "DIRECT"; |
|---|
| 6 | |
|---|
| 7 | if (isPlainHostName(host)) |
|---|
| 8 | { return proxy_no; } |
|---|
| 9 | if (url.substring(0, 4) == "ftp:") |
|---|
| 10 | { return proxy_no; } |
|---|
| 11 | if (dnsDomainIs(host, "2ch.net")) |
|---|
| 12 | { return proxy_no; } |
|---|
| 13 | // if (shExpMatch(url, "http://www.tumblr.com/api/write/*")) |
|---|
| 14 | // { return proxy_no; } |
|---|
| 15 | // if (shExpMatch(url, "http://www.lingr.com/api/*")) |
|---|
| 16 | // { return proxy_no; } |
|---|
| 17 | // if (shExpMatch(url, "http://twitter.com/statuses/*")) |
|---|
| 18 | // { return proxy_no; } |
|---|
| 19 | // if (shExpMatch(url, "http://www.google.com/reader/atom/*")) |
|---|
| 20 | // { return proxy_no; } |
|---|
| 21 | // if (shExpMatch(url, "http://*.megalodon.jp/*")) |
|---|
| 22 | // { return proxy_no; } |
|---|
| 23 | if (localHostOrDomainIs(host, "idisk.mac.com")) |
|---|
| 24 | { return proxy_no; } |
|---|
| 25 | if (isInNet(host, "10.0.0.0", "255.0.0.0") || |
|---|
| 26 | isInNet(host, "127.0.0.0", "255.0.0.0") || |
|---|
| 27 | isInNet(host, "169.254.0.0", "255.255.0.0") || |
|---|
| 28 | isInNet(host, "192.168.0.0", "255.255.0.0") |
|---|
| 29 | ) { return proxy_no; } |
|---|
| 30 | |
|---|
| 31 | return proxy_yes; |
|---|
| 32 | } |
|---|