mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-06-17 12:08:54 +00:00
fix(streamdata): correctly track explicit APN host configuration
Record whether an APN host was explicitly provided during module init by setting `ApnHostProvided` only when APN is enabled and host is non-empty. This preserves accurate APN state for downstream logic that depends on distinguishing defaulted host values from user-provided configuration.
This commit is contained in:
parent
3d47e802f1
commit
d2e7f9aa6b
@ -15,9 +15,10 @@ namespace LME.StreamData
|
||||
{
|
||||
public class ModInit : IModuleLoaded
|
||||
{
|
||||
public static double Version => 1.0;
|
||||
public static double Version => 1.5;
|
||||
|
||||
public static OnlinesSettings StreamDataSettings;
|
||||
public static bool ApnHostProvided;
|
||||
|
||||
public static OnlinesSettings Settings
|
||||
{
|
||||
@ -52,7 +53,7 @@ namespace LME.StreamData
|
||||
StreamDataSettings = conf.ToObject<OnlinesSettings>();
|
||||
if (hasApn)
|
||||
ApnHelper.ApplyInitConf(apnEnabled, apnHost, StreamDataSettings, useDefaultHostWhenEmpty: true);
|
||||
|
||||
ApnHostProvided = hasApn && apnEnabled && !string.IsNullOrWhiteSpace(apnHost);
|
||||
if (hasApn && apnEnabled)
|
||||
{
|
||||
StreamDataSettings.streamproxy = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user