fix ipv6 only letsencrypt #5988

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed Apr 6, 2024 at 23:47 UTC 31ebb21e0be8c31b424db42d7902fdddd64f549e
1 file changed +1 -1
meshcentral.js
+1 -1
@@ -3781,7 +3781,7 @@ function CreateMeshCentralServer(config, args) {
3781 function checkResolveAll(names, func) {
3782 const dns = require('dns'), state = { func: func, count: names.length, err: null };
3783 for (var i in names) {
3784 - dns.resolve(names[i], function (err, records) {
3784 + dns.lookup(names[i], { all: true }, function (err, records) {
3785 if (err != null) { if (this.state.err == null) { this.state.err = [this.name]; } else { this.state.err.push(this.name); } }
3786 if (--this.state.count == 0) { this.state.func(this.state.err); }
3787 }.bind({ name: names[i], state: state }))