From 0755ba27483032a0f5ad7806f6aba084dd51bf37 Mon Sep 17 00:00:00 2001 From: Flummi Date: Sun, 28 Nov 2021 04:16:23 +0000 Subject: [PATCH] moved master-ip to config --- src/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.mjs b/src/index.mjs index af77717..b6eea7b 100644 --- a/src/index.mjs +++ b/src/index.mjs @@ -4,7 +4,7 @@ import { promises as fs } from "fs"; import { execSync as exec } from "child_process"; class updateBind { - bindTpl = zone => `zone "${zone}" {\n type slave;\n file "/etc/bind/keyhelp_domains/${zone}";\n masters { 135.181.244.181; };\n};\n`; + bindTpl = zone => `zone "${zone}" {\n type slave;\n file "/etc/bind/keyhelp_domains/${zone}";\n masters { ${cfg.bind.master}; };\n};\n`; fetchApi = async path => (await fetch(`https://${cfg.api.host}/${path}`, { headers: { "X-API-Key": cfg.api.key } })).json(); constructor() {