mirror of
				https://github.com/StackExchange/dnscontrol.git
				synced 2025-10-31 00:17:16 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			360 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			360 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package models
 | |
| 
 | |
| import "fmt"
 | |
| 
 | |
| var dotwarned = map[string]bool{}
 | |
| 
 | |
| // WarnNameserverDot prints a warning about issue 491 never more than once.
 | |
| func WarnNameserverDot(p, w string) {
 | |
| 	if dotwarned[p] {
 | |
| 		return
 | |
| 	}
 | |
| 	fmt.Printf("Warning: provider %s could be improved. See https://github.com/StackExchange/dnscontrol/issues/491 (%s)\n", p, w)
 | |
| 	dotwarned[p] = true
 | |
| }
 |