Skip to content

feat(subscription): align sing-box generation and defaults with latest schema#369

Merged
x0sina merged 1 commit intodevfrom
feat/sing-box-latest-config
Apr 11, 2026
Merged

feat(subscription): align sing-box generation and defaults with latest schema#369
x0sina merged 1 commit intodevfrom
feat/sing-box-latest-config

Conversation

@x0sina
Copy link
Copy Markdown
Collaborator

@x0sina x0sina commented Apr 11, 2026

summary

This pull request updates sing-box subscription generation and the default client template so they match current sing-box behavior and documentation.

WireGuard nodes are emitted as endpoints entries using peers[].address and peers[].port, instead of the deprecated WireGuard outbound shape. VMess now uses alter_id. Hysteria2 port hopping and optional bbr_profile / hop_interval_max are derived from QUIC parameters when present, and HTTPUpgrade User-Agent is formatted like other transports. The default template switches to typed DNS servers (UDP + local) and replaces deprecated store_rdrc with store_dns on the experimental cache file.

…t schema

- Emit WireGuard as endpoint (peers address/port) per sing-box 1.11+
- VMess: alter_id; Hysteria2: hop/bbr fields; HTTPUpgrade User-Agent as list
- Default template: typed DNS servers, store_dns in cache_file
- Update API test for WireGuard endpoint

Made-with: Cursor
@x0sina x0sina added the Backend label Apr 11, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 11, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 10605e45-a8f1-4dd4-bbb5-1fb511aaf296

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/sing-box-latest-config

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@x0sina x0sina merged commit 2122306 into dev Apr 11, 2026
18 of 20 checks passed
@ImMohammad20000 ImMohammad20000 deleted the feat/sing-box-latest-config branch April 12, 2026 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant