add verifyPeerCertByName#5727
Merged
Merged
Conversation
Contributor
Author
|
As well as adding the |
Owner
|
感谢 PR |
Contributor
There was a problem hiding this comment.
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 intoServerActivityload/save logic. - Persist the setting on
ProfileItemand propagate it into generated outbound TLS/REALITY settings. - Support import/export via share-link query parameter
vcnand 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> |
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.
Provide GUI support for the
verifyPeerCertByNameconfiguration option in Xray Core.