mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 16:54:46 +03:00
Ssl in mediabrowser against new listener.
This commit is contained in:
@@ -99,22 +99,22 @@ namespace MediaBrowser.Server.Implementations.ServerManager
|
||||
/// <summary>
|
||||
/// Starts this instance.
|
||||
/// </summary>
|
||||
public void Start(IEnumerable<string> urlPrefixes)
|
||||
public void Start(IEnumerable<string> urlPrefixes, string certificatePath)
|
||||
{
|
||||
ReloadHttpServer(urlPrefixes);
|
||||
ReloadHttpServer(urlPrefixes, certificatePath);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restarts the Http Server, or starts it if not currently running
|
||||
/// </summary>
|
||||
private void ReloadHttpServer(IEnumerable<string> urlPrefixes)
|
||||
private void ReloadHttpServer(IEnumerable<string> urlPrefixes, string certificatePath)
|
||||
{
|
||||
_logger.Info("Loading Http Server");
|
||||
|
||||
try
|
||||
{
|
||||
HttpServer = _applicationHost.Resolve<IHttpServer>();
|
||||
HttpServer.StartServer(urlPrefixes);
|
||||
HttpServer.StartServer(urlPrefixes, certificatePath);
|
||||
}
|
||||
catch (SocketException ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user