Skip to content

Commit

Permalink
PAC: add a hack for Google's domain.
Browse files Browse the repository at this point in the history
  • Loading branch information
biergaizi committed Jun 18, 2014
1 parent 015f2a1 commit 4ab3893
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chnroutes.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ def generate_pac(metric):
logic = textwrap.dedent("""\
function inChina(host)
{
if (shExpMatch(host, "*.google.*")) {
return false;
}
var ip = dnsResolve(host);
for (var i = 0; i < CHINESE_SUBNETS.length; i++) {
var subnet = CHINESE_SUBNETS[i][0];
Expand Down

0 comments on commit 4ab3893

Please sign in to comment.