mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	fix ipv6 only letsencrypt #5988
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
		
							parent
							
								
									4a3c6db0ea
								
							
						
					
					
						commit
						31ebb21e0b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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 }))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue