Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // This proxy script has different DNS dependencies based on whether the URL | |
| 6 // contains "UseMyIpAddress". The final proxy list however is the same. | |
| 7 function FindProxyForURL(url, host) { | |
| 8 if (url.indexOf("UseMyIpAddress") == -1) { | |
| 9 if (!myIpAddress()) | |
| 10 return null; | |
| 11 } else { | |
| 12 if (!dnsResolve(host)) | |
| 13 return null; | |
| 14 } | |
| 15 | |
| 16 return "PROXY foopy:47"; | |
| 17 } | |
| OLD | NEW |