mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	Remove CanConnectWithHttps Property
It is only used in one place and only adds confusion by existing
This commit is contained in:
		
							parent
							
								
									5bc6c08a0a
								
							
						
					
					
						commit
						fee76097f4
					
				@ -1413,7 +1413,7 @@ namespace Emby.Server.Implementations
 | 
			
		||||
                InternalMetadataPath = ApplicationPaths.InternalMetadataPath,
 | 
			
		||||
                CachePath = ApplicationPaths.CachePath,
 | 
			
		||||
                HttpServerPortNumber = HttpPort,
 | 
			
		||||
                SupportsHttps = CanConnectWithHttps,
 | 
			
		||||
                SupportsHttps = ListenWithHttps || ServerConfigurationManager.Configuration.IsBehindProxy,
 | 
			
		||||
                HttpsPortNumber = HttpsPort,
 | 
			
		||||
                OperatingSystem = OperatingSystem.Id.ToString(),
 | 
			
		||||
                OperatingSystemDisplayName = OperatingSystem.Name,
 | 
			
		||||
@ -1455,8 +1455,6 @@ namespace Emby.Server.Implementations
 | 
			
		||||
        public bool ListenWithHttps => Certificate != null && ServerConfigurationManager.Configuration.EnableHttps;
 | 
			
		||||
 | 
			
		||||
        /// <inheritdoc/>
 | 
			
		||||
        public bool CanConnectWithHttps => ListenWithHttps || ServerConfigurationManager.Configuration.IsBehindProxy;
 | 
			
		||||
 | 
			
		||||
        public async Task<string> GetLocalApiUrl(CancellationToken cancellationToken)
 | 
			
		||||
        {
 | 
			
		||||
            try
 | 
			
		||||
 | 
			
		||||
@ -43,12 +43,6 @@ namespace MediaBrowser.Controller
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        bool ListenWithHttps { get; }
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// Gets a value indicating whether a client can connect to the server over HTTPS, either directly or via a
 | 
			
		||||
        /// reverse proxy.
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        bool CanConnectWithHttps { get; }
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// Gets a value indicating whether this instance has update available.
 | 
			
		||||
        /// </summary>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user