Commit Graph

3 Commits (15318976f67a8dc60663f51b78f0bf73c931f7cc)

Author SHA1 Message Date
RPRX a2b773135a
XHTTP, WS, HU: Forbid "host" in `headers`, read `serverName` instead (#4142)
WebSocket's config files should be updated ASAP.
2024-12-11 00:58:14 +00:00
nobody ac628a9427
API: Improve MarshalToJson() in common/reflect/marshal.go (#3655)
* Serialize enum to string in MarshalToJson().

* MarshalToJson() respect json tags.

* Add insertTypeInfo parameter to MarshalToJson().

* Omit empty string in MarshalToJson().

* Serialize PortList to string in MarshalToJson().

---------

Co-authored-by: nobody <nobody@nowhere.mars>
2024-08-08 10:35:46 -04:00
nobody 44bb83033f
Add sub-command "-dump" to "run". (#2854)
* Add MarshalToJson().

* Add cmd arg -dump for printing out merged multiple json configs.

---------

Co-authored-by: nobody <nobody@nowhere.mars>
2023-12-29 11:16:48 -05:00