 Matt Holt
					
					4 years ago
						Matt Holt
					
					4 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
2 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					modules/caddyhttp/server.go
				
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -27,6 +27,7 @@ import ( | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | 	"github.com/caddyserver/caddy/v2" |  |  | 	"github.com/caddyserver/caddy/v2" | 
			
		
	
		
		
			
				
					|  |  | 	"github.com/caddyserver/caddy/v2/modules/caddytls" |  |  | 	"github.com/caddyserver/caddy/v2/modules/caddytls" | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 	"github.com/caddyserver/certmagic" | 
			
		
	
		
		
			
				
					|  |  | 	"github.com/lucas-clemente/quic-go/http3" |  |  | 	"github.com/lucas-clemente/quic-go/http3" | 
			
		
	
		
		
			
				
					|  |  | 	"go.uber.org/zap" |  |  | 	"go.uber.org/zap" | 
			
		
	
		
		
			
				
					|  |  | 	"go.uber.org/zap/zapcore" |  |  | 	"go.uber.org/zap/zapcore" | 
			
		
	
	
		
		
			
				
					|  | @ -484,7 +485,7 @@ func (s *Server) shouldLogRequest(r *http.Request) bool { | 
			
		
	
		
		
			
				
					|  |  | 	} |  |  | 	} | 
			
		
	
		
		
			
				
					|  |  | 	for _, dh := range s.Logs.SkipHosts { |  |  | 	for _, dh := range s.Logs.SkipHosts { | 
			
		
	
		
		
			
				
					|  |  | 		// logging for this particular host is disabled
 |  |  | 		// logging for this particular host is disabled
 | 
			
		
	
		
		
			
				
					
					|  |  | 		if r.Host == dh { |  |  | 		if certmagic.MatchWildcard(r.Host, dh) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  | 			return false |  |  | 			return false | 
			
		
	
		
		
			
				
					|  |  | 		} |  |  | 		} | 
			
		
	
		
		
			
				
					|  |  | 	} |  |  | 	} | 
			
		
	
	
		
		
			
				
					|  | 
 |