mirror of https://github.com/2dust/v2rayN
Fixes TypeInfoResolver Exception
parent
81172f10eb
commit
72915c15af
|
@ -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
|
||||
|
@ -1569,7 +1569,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 New Issue