fix ipv6 only letsencrypt #5988

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2024-04-06 23:47:02 +01:00
parent 4a3c6db0ea
commit 31ebb21e0b
1 changed files with 1 additions and 1 deletions

View File

@ -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 }))