1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Add CF aliases

This commit is contained in:
Tom Limoncelli
2017-05-11 01:02:57 -04:00
parent a355b8e438
commit 56e08b9202
2 changed files with 38 additions and 0 deletions

View File

@ -303,3 +303,10 @@ function num2dot(num)
}
return d;
}
// Cloudflare aliases:
var CF_PROXY_OFF = {'cloudflare_proxy': 'off'}; // Default/off.
var CF_PROXY_ON = {'cloudflare_proxy': 'on'}; // Sites safe to proxy.
var CF_PROXY_FULL = {'cloudflare_proxy': 'full'}; // Sites safe to railgun.
var SET_PROXY_DEFAULT_TRUE = CF_PROXY_ON; // Turn on CF proxy for entire domain.
var SET_PROXY_DEFAULT_FALSE = CF_PROXY_OFF; // basically a no-op.