Add Finalmask support (#8820)

* Add Finalmask support

* UI
This commit is contained in:
DHR60
2026-02-24 13:09:17 +00:00
committed by GitHub
parent aea7078e95
commit 7b31bcdd9f
17 changed files with 171 additions and 24 deletions
@@ -354,14 +354,7 @@ public partial class CoreConfigV2rayService
var useragent = "";
if (!_config.CoreBasicItem.DefUserAgent.IsNullOrEmpty())
{
try
{
useragent = Global.UserAgentTexts[_config.CoreBasicItem.DefUserAgent];
}
catch (KeyNotFoundException)
{
useragent = _config.CoreBasicItem.DefUserAgent;
}
useragent = Global.UserAgentTexts.GetValueOrDefault(_config.CoreBasicItem.DefUserAgent, _config.CoreBasicItem.DefUserAgent);
}
//if tls
@@ -666,6 +659,11 @@ public partial class CoreConfigV2rayService
}
break;
}
if (!_node.Finalmask.IsNullOrEmpty())
{
streamSettings.finalmask = JsonUtils.Deserialize<Finalmask4Ray>(_node.Finalmask);
}
}
catch (Exception ex)
{