mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-09 12:48:06 -05:00
fix ipv6 only letsencrypt #5988
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
4a3c6db0ea
commit
31ebb21e0b
@ -3781,7 +3781,7 @@ function CreateMeshCentralServer(config, args) {
|
|||||||
function checkResolveAll(names, func) {
|
function checkResolveAll(names, func) {
|
||||||
const dns = require('dns'), state = { func: func, count: names.length, err: null };
|
const dns = require('dns'), state = { func: func, count: names.length, err: null };
|
||||||
for (var i in names) {
|
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 (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); }
|
if (--this.state.count == 0) { this.state.func(this.state.err); }
|
||||||
}.bind({ name: names[i], state: state }))
|
}.bind({ name: names[i], state: state }))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user