From 31ebb21e0be8c31b424db42d7902fdddd64f549e Mon Sep 17 00:00:00 2001 From: si458 Date: Sat, 6 Apr 2024 23:47:02 +0100 Subject: [PATCH] fix ipv6 only letsencrypt #5988 Signed-off-by: si458 --- meshcentral.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshcentral.js b/meshcentral.js index 9c57d040..85c97b47 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -3781,7 +3781,7 @@ function CreateMeshCentralServer(config, args) { function checkResolveAll(names, func) { const dns = require('dns'), state = { func: func, count: names.length, err: null }; for (var i in names) { - dns.resolve(names[i], function (err, records) { + dns.lookup(names[i], { all: true }, function (err, records) { if (err != null) { if (this.state.err == null) { this.state.err = [this.name]; } else { this.state.err.push(this.name); } } if (--this.state.count == 0) { this.state.func(this.state.err); } }.bind({ name: names[i], state: state }))