【发布时间】:2012-03-18 15:14:56
【问题描述】:
我正在编写一个 .pac 文件以供 iOS5 使用而无需越狱,但我在匹配以“https”开头的 url 时感到麻烦(例如:https://test.com)。
这是我的脚本:
function FindProxyForURL(url, host) {
if (shExpMatch(url, "https://*")) return "PROXY 123.123.123.123";
return 'DIRECT';
}
如果我匹配“https://test.com”,如何将“https://123.123.123.123”返回到 URL?
【问题讨论】: