Skip to content

Fix mutable default arguments in XRay constructor to prevent config state leakage - #34

Closed
zZedix wants to merge 2 commits into
PasarGuard:nextfrom
zZedix:fix-xray-mutable-defaults
Closed

Fix mutable default arguments in XRay constructor to prevent config state leakage#34
zZedix wants to merge 2 commits into
PasarGuard:nextfrom
zZedix:fix-xray-mutable-defaults

Conversation

@zZedix

@zZedix zZedix commented Oct 10, 2025

Copy link
Copy Markdown
Contributor

The XRay constructor was updated to stop sharing mutable default values across instances.
config, exclude_inbound_tags, and fallbacks_inbound_tags now default to None and are initialized per instance, preventing inbound exclusions from leaking between different configurations

@zZedix
zZedix deleted the fix-xray-mutable-defaults branch October 12, 2025 22:10
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