Skip to content

add verifyPeerCertByName#5727

Merged
2dust merged 1 commit into
2dust:masterfrom
chlink2025:master
Jun 3, 2026
Merged

add verifyPeerCertByName#5727
2dust merged 1 commit into
2dust:masterfrom
chlink2025:master

Conversation

@chlink2025
Copy link
Copy Markdown
Contributor

Provide GUI support for the verifyPeerCertByName configuration option in Xray Core.

@chlink2025
Copy link
Copy Markdown
Contributor Author

As well as adding the vcn sharing link parameter, in accordance with XTLS/Xray-core#6245 (comment).

@2dust
Copy link
Copy Markdown
Owner

2dust commented Jun 3, 2026

感谢 PR

@2dust 2dust merged commit 0210328 into 2dust:master Jun 3, 2026
1 check passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds end-to-end support (UI → persisted profile → outbound JSON → share links) for Xray Core’s verifyPeerCertByName TLS setting so users can configure it from v2rayNG.

Changes:

  • Add a new TLS UI field (et_verify_peer_cert_by_name) and wire it into ServerActivity load/save logic.
  • Persist the setting on ProfileItem and propagate it into generated outbound TLS/REALITY settings.
  • Support import/export via share-link query parameter vcn and add UI label resources.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
V2rayNG/app/src/main/res/values/strings.xml Adds default (en) label for the new TLS field.
V2rayNG/app/src/main/res/values-zh-rTW/strings.xml Adds locale string entry for the new label.
V2rayNG/app/src/main/res/values-zh-rCN/strings.xml Adds locale string entry for the new label.
V2rayNG/app/src/main/res/values-vi/strings.xml Adds locale string entry for the new label.
V2rayNG/app/src/main/res/values-ru/strings.xml Adds locale string entry for the new label.
V2rayNG/app/src/main/res/values-fa/strings.xml Adds locale string entry for the new label.
V2rayNG/app/src/main/res/values-bqi-rIR/strings.xml Adds locale string entry for the new label.
V2rayNG/app/src/main/res/values-bn/strings.xml Adds locale string entry for the new label.
V2rayNG/app/src/main/res/values-ar/strings.xml Adds locale string entry for the new label.
V2rayNG/app/src/main/res/layout/layout_tls.xml Introduces the new EditText + label in the TLS settings layout and updates focus navigation.
V2rayNG/app/src/main/java/com/v2ray/ang/ui/ServerActivity.kt Binds/saves the new field and toggles its visibility alongside other TLS-only fields.
V2rayNG/app/src/main/java/com/v2ray/ang/fmt/FmtBase.kt Adds vcn query param import/export for verifyPeerCertByName.
V2rayNG/app/src/main/java/com/v2ray/ang/dto/V2rayConfig.kt Extends TLS settings DTO with verifyPeerCertByName.
V2rayNG/app/src/main/java/com/v2ray/ang/dto/entities/ProfileItem.kt Persists verifyPeerCertByName on the profile model.
V2rayNG/app/src/main/java/com/v2ray/ang/core/CoreOutboundBuilder.kt Emits verifyPeerCertByName into outbound TLS/REALITY settings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<string name="server_lab_xhttp_extra">XHTTP Extra 原始 JSON,格式: { XHTTPObject }</string>
<string name="server_lab_final_mask">FinalMask 原始 JSON 格式: { FinalMaskObject }</string>
<string name="server_lab_ech_config_list">EchConfigList</string>
<string name="server_lab_verify_peer_cert_by_name">Verify Peer Cert By Name</string>
<string name="server_lab_xhttp_extra">XHTTP Extra 原始 JSON,格式: { XHTTPObject }</string>
<string name="server_lab_final_mask">FinalMask 原始 JSON 格式: { FinalMaskObject }</string>
<string name="server_lab_ech_config_list">EchConfigList</string>
<string name="server_lab_verify_peer_cert_by_name">Verify Peer Cert By Name</string>
<string name="server_lab_xhttp_extra">Необработанный JSON XHTTP Extra, формат: { XHTTPObject }</string>
<string name="server_lab_final_mask">Необработанный JSON FinalMask, формат: { FinalMaskObject }</string>
<string name="server_lab_ech_config_list">ECHConfigList</string>
<string name="server_lab_verify_peer_cert_by_name">Verify Peer Cert By Name</string>
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.

3 participants