fixed crash when lego is disabled
This commit is contained in:
		
							parent
							
								
									0fe5d73853
								
							
						
					
					
						commit
						8f499d8f85
					
				@ -76,7 +76,7 @@ func createServer(zones zoneMap, config config, aclList map[string]*net.IPNet, b
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			// Check if it is a ACME DNS-01 challange
 | 
			
		||||
			if handleACMERequest(w, r, acmeList) {
 | 
			
		||||
			if config.Lego.Enable && handleACMERequest(w, r, acmeList) {
 | 
			
		||||
				return
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
@ -112,7 +112,7 @@ func createServer(zones zoneMap, config config, aclList map[string]*net.IPNet, b
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// Check if it is a ACME DNS-01 challange
 | 
			
		||||
		if handleACMERequest(w, r, acmeList) {
 | 
			
		||||
		if config.Lego.Enable && handleACMERequest(w, r, acmeList) {
 | 
			
		||||
			return
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user