mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-04-16 09:22:21 +00:00
Introduce a new configuration option `magic_apn` that allows automatic enabling of APN for Ashdi streams when using the inner player. The configuration is an object with an `ashdi` property that specifies the host to use for Ashdi APN. Changes include: - Add `TryGetMagicAshdiHost` method to parse `magic_apn` configuration - Add `NormalizeHost`
19 lines
682 B
C#
19 lines
682 B
C#
using Shared.Models.Online.Settings;
|
|
|
|
namespace KlonFUN
|
|
{
|
|
public class MagicApnSettings
|
|
{
|
|
public string ashdi { get; set; }
|
|
}
|
|
|
|
public class ModuleConfig : OnlinesSettings
|
|
{
|
|
public ModuleConfig(string plugin, string host, string apihost = null, bool useproxy = false, string token = null, bool enable = true, bool streamproxy = false, bool rip = false, bool forceEncryptToken = false, string rch_access = null, string stream_access = null) : base(plugin, host, apihost, useproxy, token, enable, streamproxy, rip, forceEncryptToken, rch_access, stream_access)
|
|
{
|
|
}
|
|
|
|
public MagicApnSettings magic_apn { get; set; }
|
|
}
|
|
}
|