mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	Merge pull request #2740 from JustAMan/fix-livetv
Fix GetLocalApiUrl for cases with https enabled
This commit is contained in:
		
						commit
						b3283e37f2
					
				@ -1509,18 +1509,10 @@ namespace Emby.Server.Implementations
 | 
				
			|||||||
        public string GetLocalApiUrl(ReadOnlySpan<char> host)
 | 
					        public string GetLocalApiUrl(ReadOnlySpan<char> host)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            var url = new StringBuilder(64);
 | 
					            var url = new StringBuilder(64);
 | 
				
			||||||
            if (EnableHttps)
 | 
					            url.Append(EnableHttps ? "https://" : "http://")
 | 
				
			||||||
            {
 | 
					                .Append(host)
 | 
				
			||||||
                url.Append("https://");
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                url.Append("http://");
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            url.Append(host)
 | 
					 | 
				
			||||||
                .Append(':')
 | 
					                .Append(':')
 | 
				
			||||||
                .Append(HttpPort);
 | 
					                .Append(EnableHttps ? HttpsPort : HttpPort);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            string baseUrl = ServerConfigurationManager.Configuration.BaseUrl;
 | 
					            string baseUrl = ServerConfigurationManager.Configuration.BaseUrl;
 | 
				
			||||||
            if (baseUrl.Length != 0)
 | 
					            if (baseUrl.Length != 0)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user