From d2e7f9aa6be82e6abcb50d9e03f355c098eff0a0 Mon Sep 17 00:00:00 2001 From: Felix Date: Fri, 15 May 2026 22:15:46 +0300 Subject: [PATCH] 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. --- LME.StreamData/ModInit.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LME.StreamData/ModInit.cs b/LME.StreamData/ModInit.cs index 50921a1..8d731b5 100644 --- a/LME.StreamData/ModInit.cs +++ b/LME.StreamData/ModInit.cs @@ -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(); if (hasApn) ApnHelper.ApplyInitConf(apnEnabled, apnHost, StreamDataSettings, useDefaultHostWhenEmpty: true); - + ApnHostProvided = hasApn && apnEnabled && !string.IsNullOrWhiteSpace(apnHost); if (hasApn && apnEnabled) { StreamDataSettings.streamproxy = false;