mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-23 03:16:53 +00:00
Fixes TypeInfoResolver Exception
This commit is contained in:
parent
fe4710a8fd
commit
4367f02a74
2 changed files with 5 additions and 5 deletions
|
@ -117,7 +117,7 @@ public class CoreConfigSingboxService
|
|||
}
|
||||
}
|
||||
}
|
||||
ret.Data = customConfigNode.ToJsonString(new() { WriteIndented = true });
|
||||
ret.Data = JsonUtils.Serialize(customConfigNode);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -512,7 +512,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