From 32395683c35d97501f19e209a757488abd07284b Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Tue, 5 Feb 2019 19:12:34 +0200 Subject: [PATCH] remove subnet masks --- applications/dyndns/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/applications/dyndns/index.js b/applications/dyndns/index.js index ff7b26a..e08e029 100644 --- a/applications/dyndns/index.js +++ b/applications/dyndns/index.js @@ -263,6 +263,10 @@ async function init () { res.send('Nothing to do') } + // Remove subnet masks + if (v6) v6 = v6.replace(/\/(\d+)$/, '') + if (v4) v4 = v4.replace(/\/(\d+)$/, '') + try { await updateZone(Object.assign({ token: token,