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

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
Free-Guy-IR added a commit to Free-Guy-IR/panel that referenced this pull request Nov 2, 2026
…nd scripts

Checked with git ls-remote on 2026-10-10 15:37 UTC. Every repo's newest tag and
GitHub release is unchanged (panel v5.4.1, node v0.5.4, node_bridge_py v0.9.2,
subscription-template v2.2.1, scripts v0.1.9, mtg v2.2.8, wireguard-config-kit
v.0.1.0, core-kit none); PyPI node bridge 0.9.2.

- Panel dev d94e157: PasarGuard#983 and its branch commit e85cb1b only touch the Telegram
  notifier workflow the fork deleted, so they are waived; three new unmerged
  branches (API-key copy on insecure contexts, area chart theme, udphop version
  hint) are conditional waivers that end when upstream merges them.
- Node dev f72ac0ef (PasarGuard#99): a user who loses WireGuard access kept a working peer
  after a partial sync, and its freed IP could be reused while the peer still held
  it. No fork branch ports it, so it is queued as security: yes and the node line
  fails at once until it is ported.
- Scripts main 7bccaec (PasarGuard#34, the squash of pull request PasarGuard#34 including be8f734):
  fresh-server backup recovery, queued as security: no with the other backup and
  restore ports; its three unmerged follow-up branches are conditional waivers.

The refs snapshots record the ten new heads.
Free-Guy-IR added a commit to Free-Guy-IR/panel that referenced this pull request Nov 2, 2026
…ain bba95f274

Checked with git ls-remote on 2026-10-11 02:55 UTC. Panel dev moved from
d94e157 to 83fe90e with 22 commits; main is still v5.4.1.

- PasarGuard#879 (2d0ca81, loopback Xray client inbounds) is ported by design: the
  fork took the open pull request on 2026-09-25 as 2e7fc45 with migration
  bfd88026565b, the same listener rewrite.
- PasarGuard#934 (a5b28f3) moves from the port queue to a dated waiver until
  2026-11-09: the fork refuses to delete a core that nodes still use
  (W3-013, fix/node-health) instead of restarting those nodes.
- PasarGuard#993 (Hysteria2 FinalMask without a udp mask) is queued until 2026-10-18:
  the fork has the same FinalMask | dict field and the same non-null-safe
  udpHop reads, so a udpHop-only host can fail the whole subscription.
- PasarGuard#984, PasarGuard#985, PasarGuard#986, PasarGuard#989, PasarGuard#944, PasarGuard#864, PasarGuard#948, PasarGuard#951, PasarGuard#778, PasarGuard#774, PasarGuard#787, PasarGuard#994,
  PasarGuard#865, PasarGuard#875, PasarGuard#718, PasarGuard#967, PasarGuard#772, PasarGuard#662, PasarGuard#995 and PasarGuard#913 are queued as
  security: no until 2026-10-25, each with its reason; PasarGuard#913's node-removal
  half is already in the fork through sync_remove_users.
- The branch commits that upstream squash-merged (the three dashboard
  branches, telegram/tests, fix/core-editor-api-section-followup,
  fix/hwid-count-test-cleanup, fix/hysteria-finalmask-quic-only) follow
  their squash, by patch-id or by an equal tree.

Scripts main moved to bba95f274 (PasarGuard#35, PasarGuard#36, PasarGuard#37 after PasarGuard#34). The three
squashes are queued security: no until 2026-10-25, and their pre-squash
branch commits are waived as superseded (equal trees).

Against live upstream the panel gate now fails only on the 17 port-queue
commits classified security: yes, and the forks gate only on node
f72ac0ef (security: yes). No upstream commit is undecided.
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