|
@@ -1,3 +1,4 @@
|
|
|
|
+using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
using CommandLine;
|
|
using CommandLine;
|
|
using Emby.Server.Implementations;
|
|
using Emby.Server.Implementations;
|
|
@@ -83,8 +84,8 @@ namespace Jellyfin.Server
|
|
public string? PluginManifestUrl { get; set; }
|
|
public string? PluginManifestUrl { get; set; }
|
|
|
|
|
|
/// <inheritdoc />
|
|
/// <inheritdoc />
|
|
- [Option("auto-discover-publish-url", Required = false, HelpText = "Jellyfin Server URL to publish via auto discover process")]
|
|
|
|
- public string? AutoDiscoverPublishUrl { get; set; }
|
|
|
|
|
|
+ [Option("published-server-url", Required = false, HelpText = "Jellyfin Server URL to publish via auto discover process")]
|
|
|
|
+ public Uri? PublishedServerUrl { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Gets the command line options as a dictionary that can be used in the .NET configuration system.
|
|
/// Gets the command line options as a dictionary that can be used in the .NET configuration system.
|
|
@@ -104,9 +105,9 @@ namespace Jellyfin.Server
|
|
config.Add(ConfigurationExtensions.HostWebClientKey, bool.FalseString);
|
|
config.Add(ConfigurationExtensions.HostWebClientKey, bool.FalseString);
|
|
}
|
|
}
|
|
|
|
|
|
- if (AutoDiscoverPublishUrl != null)
|
|
|
|
|
|
+ if (PublishedServerUrl != null)
|
|
{
|
|
{
|
|
- config.Add(UdpServer.AddressOverrideConfigKey, AutoDiscoverPublishUrl);
|
|
|
|
|
|
+ config.Add(UdpServer.AddressOverrideConfigKey, PublishedServerUrl.ToString());
|
|
}
|
|
}
|
|
|
|
|
|
return config;
|
|
return config;
|