From 32c62612ff1452e8fb033dbc86c3fc85160e8215 Mon Sep 17 00:00:00 2001 From: Ferenc Schulcz <schulcz.ferenc@gmail.com> Date: Sun, 23 Feb 2025 18:35:26 +0100 Subject: [PATCH] Add sync retry max to config --- config.json.defaults | 5 +++-- index.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config.json.defaults b/config.json.defaults index 01569f7..58b3656 100644 --- a/config.json.defaults +++ b/config.json.defaults @@ -6,8 +6,9 @@ "listenAddress": "127.0.0.1", "listenPort": 3000, "master": { - "address": "https://dyndns.example.com", + "address": "https://dyndns.mydomain.com", "myId": "ns-test", - "key": "verysecret" + "key": "verysecret", + "syncRetryMax": 5 } } \ No newline at end of file diff --git a/index.js b/index.js index 5f094f4..f7aff1b 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ const db = config.getDb(); const knotdns = require('./knotdns'); // number of times to try syncing DNS records from master before giving up -const retryMax = 5; +const retryMax = config.config().master.syncRetryMax; // Synchronizes current DNS records from master -- GitLab