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

New feature: FETCH() permits http gets in dnsconfig.js (#1007)

add PANIC() and error-handled FETCH()
This commit is contained in:
Yuhui Xu
2021-01-06 23:45:32 +08:00
committed by GitHub
parent 120694bfad
commit 6efedd689d
8 changed files with 253 additions and 130 deletions

View File

@ -962,3 +962,7 @@ function CLI_DEFAULTS(defaults) {
}
}
}
function FETCH() {
return fetch.apply(null, arguments).catch(PANIC);
}