Skip to content

Conversation

ragavpr
Copy link
Contributor

@ragavpr ragavpr commented Apr 4, 2025

Added MarshalJSON for the below structs

  • FakeDNSConfig
  • HostAddress
  • PortRange

Rewritten MarshalJSON for

  • PortList

Also adds comments and prefers pointer receivers.

@yuhan6665 yuhan6665 merged commit 2d3126b into XTLS:main Apr 7, 2025
35 checks passed
@yuhan6665
Copy link
Member

Thanks a lot for your PR!

@ragavpr ragavpr deleted the dev branch May 29, 2025 06:28
maoxikun pushed a commit to maoxikun/Xray-core that referenced this pull request Aug 23, 2025
…shalJSON (XTLS#4585)

* conf: implement MarshalJSON for FakeDNSConfig

* conf: Rewrite MarshalJSON for PortList
decouple PortRange from PortList.

* conf: implement MarshalJSON for HostAddress

* conf: Add MarshalJSON comments and use pointers.

(cherry picked from commit 2d3126b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants