Skip to content

Fix missing WireGuard local interface address in sing-box subscription JSON for Hiddify clients.#26

Open
MikeKoroban wants to merge 1 commit intohiddify:devfrom
MikeKoroban:fix-wg-address
Open

Fix missing WireGuard local interface address in sing-box subscription JSON for Hiddify clients.#26
MikeKoroban wants to merge 1 commit intohiddify:devfrom
MikeKoroban:fix-wg-address

Conversation

@MikeKoroban
Copy link
Copy Markdown

Problem

When the Hiddify app requests a subscription (based on User-Agent), the panel returns sing-box JSON generated in:
hiddifypanel/hutils/proxy/singbox.py.

In this path, the generated WireGuard configuration is missing the top-level address field.

As a result:

  • The JSON contains no interface address
  • The client imports it as "address": null
  • WireGuard profiles fail to initialize correctly

Scope

The same issue exists in:

  • singbox.py (subscription JSON path) — used by Hiddify clients
  • xray.py (direct/raw link path)

Both were missing the WireGuard local interface address and are patched in this PR.

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.

1 participant