mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	Disable HTTPS in Kestrel if Certificate is null
This commit is contained in:
		
							parent
							
								
									c6c398179a
								
							
						
					
					
						commit
						f2062ba19b
					
				@ -629,7 +629,7 @@ namespace Emby.Server.Implementations
 | 
				
			|||||||
                {
 | 
					                {
 | 
				
			||||||
                    options.ListenAnyIP(HttpPort);
 | 
					                    options.ListenAnyIP(HttpPort);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if (EnableHttps)
 | 
					                    if (EnableHttps && Certificate != null)
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        options.ListenAnyIP(HttpsPort, listenOptions => { listenOptions.UseHttps(Certificate); });
 | 
					                        options.ListenAnyIP(HttpsPort, listenOptions => { listenOptions.UseHttps(Certificate); });
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user