Matthew Holt
					
					6 years ago
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 2A349DD577D586A5
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
1 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					modules/caddyhttp/server.go
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -187,7 +187,7 @@ func (s *Server) listenersUseAnyPortOtherThan(otherPort int) bool { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					// listeners in s that use otherPort.
 | 
					 | 
					 | 
					// listeners in s that use otherPort.
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					func (s *Server) listenersIncludePort(otherPort int) bool { | 
					 | 
					 | 
					func (s *Server) listenersIncludePort(otherPort int) bool { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						for _, lnAddr := range s.Listen { | 
					 | 
					 | 
						for _, lnAddr := range s.Listen { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							_, addrs, err := caddy.ParseListenAddr(lnAddr) | 
					 | 
					 | 
							_, addrs, err := caddy.ParseNetworkAddress(lnAddr) | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
							if err == nil { | 
					 | 
					 | 
							if err == nil { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								for _, a := range addrs { | 
					 | 
					 | 
								for _, a := range addrs { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									_, port, err := net.SplitHostPort(a) | 
					 | 
					 | 
									_, port, err := net.SplitHostPort(a) | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |