Igor Serganov
d0e10f2d46
util: read .json files as HuJSON in UnmarshalByExt ( #3634 )
...
dns.extra_records_path and derp.paths files ending in .json were decoded
with encoding/json, so a comment or trailing comma in otherwise valid
JSON made headscale refuse to load the file. Policy files already accept
HuJSON regardless of extension. HuJSON is a superset of JSON, so
standardizing .json input the same way as .hujson keeps every valid JSON
file decoding exactly as before.
Add tests for comments and trailing commas in extra records, in generic
.json decoding and in ACL policies, and for comment markers inside
string values.
Fixes #3627
2026-11-02 20:35:24 +01:00
..
2026-11-02 20:22:23 +01:00
2026-04-13 17:23:47 +01:00
2026-10-15 10:50:32 +02:00
2026-11-02 19:15:40 +01:00
2026-11-02 20:35:24 +01:00
2026-11-02 20:35:24 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 20:35:24 +01:00
2026-09-25 21:24:37 +02:00
2026-11-02 19:15:40 +01:00
2026-11-02 20:28:28 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 20:35:24 +01:00
2026-06-19 15:21:00 +02:00
2026-10-29 20:51:50 +01:00
2026-06-19 15:21:00 +02:00
2026-06-19 15:21:00 +02:00
2026-10-29 14:00:02 +01:00
2026-06-19 15:21:00 +02:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-06-19 15:21:00 +02:00
2026-11-02 20:22:23 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-10-18 20:53:18 +02:00
2026-06-24 18:41:06 +02:00
2026-11-02 19:15:40 +01:00
2026-10-18 20:53:18 +02:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-05-19 09:55:22 +02:00
2026-10-29 20:51:50 +01:00
2026-11-02 19:15:40 +01:00
2026-10-29 20:51:50 +01:00
2026-06-08 10:04:49 +02:00
2026-04-13 17:23:47 +01:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-06-05 15:00:59 +02:00
2026-08-25 21:59:00 +02:00
2026-11-02 19:15:40 +01:00
2026-11-02 19:15:40 +01:00
2026-05-18 17:17:55 +02:00
2026-06-17 16:12:19 +02:00
2026-06-17 16:12:19 +02:00
2026-04-18 09:33:41 +02:00