mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-04 03:27:23 -05:00 
			
		
		
		
	Don't change port when TLS is managed manually
This commit is contained in:
		
							parent
							
								
									345ece3850
								
							
						
					
					
						commit
						5a45719227
					
				@ -138,7 +138,7 @@ func (h *httpContext) MakeServers() ([]caddy.Server, error) {
 | 
				
			|||||||
			// is incorrect for this site.
 | 
								// is incorrect for this site.
 | 
				
			||||||
			cfg.Addr.Scheme = "https"
 | 
								cfg.Addr.Scheme = "https"
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if cfg.Addr.Port == "" {
 | 
							if cfg.Addr.Port == "" && (!cfg.TLS.Manual || cfg.TLS.OnDemand) {
 | 
				
			||||||
			// this is vital, otherwise the function call below that
 | 
								// this is vital, otherwise the function call below that
 | 
				
			||||||
			// sets the listener address will use the default port
 | 
								// sets the listener address will use the default port
 | 
				
			||||||
			// instead of 443 because it doesn't know about TLS.
 | 
								// instead of 443 because it doesn't know about TLS.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user