feat(servers): add Reality support for anytls; fix vless flow#29
Merged
web-ppanel merged 1 commit intoperfect-panel:mainfrom Mar 13, 2026
Merged
feat(servers): add Reality support for anytls; fix vless flow#29web-ppanel merged 1 commit intoperfect-panel:mainfrom
web-ppanel merged 1 commit intoperfect-panel:mainfrom
Conversation
constraints
anytls:
- Add "reality" "tls" to SECURITY.anytls enum
- Extend anytls Zod schema with reality_server_addr /
reality_server_port /
reality_private_key / reality_public_key / reality_short_id fields
- Add Reality defaults (all null) to getProtocolDefaultConfig
- Add "reality" field group in useProtocolFields with one-click key-pair
generation (shared generateRealityKeyPair / generateRealityShortId)
- Scope cert_mode / cert_dns_provider / cert_dns_env visibility to
security === "tls" only (cert fields are irrelevant under Reality)
vless:
- Remove deprecated flow values xtls-rprx-direct and xtls-rprx-splice
from FLOWS.vless (removed in xray-core v1.8+)
- Tighten flow field condition:
visible when encryption === "mlkem768x25519plus" (transport-agnostic),
or when transport === "tcp" && security ∈ { tls, reality }
✅ Deploy Preview for ppane-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
Thank you for your contribution! This PR has been automatically merged by the triage bot as it passed all checks and appears to be a beneficial improvement. Welcome to continue contributing to the project! 🎉 |
Contributor
|
🎉 This PR is included in version 1.4.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
feat: 为 anytls 协议添加 Reality 支持
SECURITY.anytls枚举新增"reality"选项reality_server_addr/reality_server_port/reality_private_key/reality_public_key/reality_short_idgetProtocolDefaultConfig中同步追加上述字段的 null 默认值reality_private_key支持一键生成密钥对并联动填充
reality_public_key(复用generateRealityKeyPair)cert_mode/cert_dns_provider/cert_dns_env的可见条件从security !== "none"收窄为security === "tls",避免在 Reality 模式下展示无关的证书申请字段
fix: 修正 vless flow 配置项的枚举值与显示约束
FLOWS.vless中移除已废弃的xtls-rprx-direct与xtls-rprx-splice(xray-core v1.8+ 已移除)encryption === "mlkem768x25519plus"时,无视传输层直接显示transport === "tcp"且security ∈ { tls, reality }📝 补充信息 | Additional Information
anytls 的 Reality 实现与 vless 保持字段命名和生成逻辑完全一致,
便于后续统一维护。