diff --git a/v2rayN/ServiceLib/Handler/Builder/NodeValidator.cs b/v2rayN/ServiceLib/Handler/Builder/NodeValidator.cs index 65110b2a..85c90011 100644 --- a/v2rayN/ServiceLib/Handler/Builder/NodeValidator.cs +++ b/v2rayN/ServiceLib/Handler/Builder/NodeValidator.cs @@ -143,11 +143,19 @@ public class NodeValidator if (item.Network == nameof(ETransport.xhttp) && !item.Extra.IsNullOrEmpty()) { - if (JsonUtils.ParseJson(item.Extra) is null) + if (JsonUtils.ParseJson(item.Extra) is not JsonObject) { v.Error(string.Format(ResUI.MsgInvalidProperty, "XHTTP Extra")); } } + + if (!item.Finalmask.IsNullOrEmpty()) + { + if (JsonUtils.ParseJson(item.Finalmask) is not JsonObject) + { + v.Error(string.Format(ResUI.MsgInvalidProperty, "Finalmask")); + } + } } private static string? ValidateSingboxTransport(EConfigType configType, string net)