mirror of
https://github.com/2dust/v2rayN.git
synced 2025-10-29 11:32:53 +00:00
Fixes TypeInfoResolver Exception
This commit is contained in:
parent
eb0e2aa5c5
commit
48353d1892
2 changed files with 5 additions and 5 deletions
|
|
@ -122,7 +122,7 @@ public class CoreConfigSingboxService
|
|||
}
|
||||
}
|
||||
}
|
||||
ret.Data = customConfigNode.ToJsonString(new() { WriteIndented = true });
|
||||
ret.Data = JsonUtils.Serialize(customConfigNode);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -517,7 +517,7 @@ public class CoreConfigSingboxService
|
|||
}
|
||||
}
|
||||
}
|
||||
ret.Data = customConfigNode.ToJsonString(new() { WriteIndented = true });
|
||||
ret.Data = JsonUtils.Serialize(customConfigNode);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ public class CoreConfigV2rayService
|
|||
}
|
||||
}
|
||||
}
|
||||
ret.Data = customConfigNode.ToJsonString(new() { WriteIndented = true });
|
||||
ret.Data = JsonUtils.Serialize(customConfigNode);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -299,7 +299,7 @@ public class CoreConfigV2rayService
|
|||
}
|
||||
}
|
||||
}
|
||||
ret.Data = customConfigNode.ToJsonString(new() { WriteIndented = true });
|
||||
ret.Data = JsonUtils.Serialize(customConfigNode);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -1570,7 +1570,7 @@ public class CoreConfigV2rayService
|
|||
|
||||
await GenDnsDomainsCompatible(node, obj, item);
|
||||
|
||||
v2rayConfig.dns = JsonUtils.Deserialize<Dns4Ray>(obj.ToJsonString());
|
||||
v2rayConfig.dns = JsonUtils.Deserialize<Dns4Ray>(JsonUtils.Serialize(obj));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue