Skip to content

Commit

Permalink
fix ipv6 only letsencrypt #5988
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <simonsmith5521@gmail.com>
  • Loading branch information
si458 committed Apr 6, 2024
1 parent 4a3c6db commit 31ebb21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meshcentral.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }))
Expand Down

0 comments on commit 31ebb21

Please sign in to comment.