[PR #6479] [MERGED] fix(link): keep verifyPeerCertByName (vcn) on Go TLS import #6295

Closed
opened 2026-11-02 04:07:45 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6479
Author: @mrchatam
Created: 9/11/2026
Status: ✅ Merged
Merged: 9/12/2026
Merged by: @MHSanaei

Base: main ← Head: fix/link-import-vcn


📝 Commits (1)

  • bbc2b4d fix(link): map vcn to verifyPeerCertByName in applySecurity

📊 Changes

2 files changed (+3 additions, -2 deletions)

View changed files

📝 internal/util/link/outbound.go (+1 -0)
📝 internal/util/link/outbound_helpers_test.go (+2 -2)

📄 Description

Summary

  • Map share-link query vcn to tlsSettings.verifyPeerCertByName in Go applySecurity (TLS branch), matching the TS importer and the existing Hysteria2 Go path.
  • Extend TestParse_TLSSecurityMapped so vcn is asserted to survive round-trip through the Go parser.

Fixes #6477

Test plan

  • go test ./internal/util/link/
  • Import a VLESS/Trojan TLS share link that includes vcn=<cn> via a Go path (e.g. external JSON subscription) and confirm outbound tlsSettings.verifyPeerCertByName is set
  • Confirm UI (TS) import of the same link still behaves as before

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/6479 **Author:** [@mrchatam](https://github.com/mrchatam) **Created:** 9/11/2026 **Status:** ✅ Merged **Merged:** 9/12/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix/link-import-vcn` --- ### 📝 Commits (1) - [`bbc2b4d`](https://github.com/MHSanaei/3x-ui/commit/bbc2b4df8131257bb1333ac74d05399eb788890b) fix(link): map vcn to verifyPeerCertByName in applySecurity ### 📊 Changes **2 files changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `internal/util/link/outbound.go` (+1 -0) 📝 `internal/util/link/outbound_helpers_test.go` (+2 -2) </details> ### 📄 Description ## Summary - Map share-link query `vcn` to `tlsSettings.verifyPeerCertByName` in Go `applySecurity` (TLS branch), matching the TS importer and the existing Hysteria2 Go path. - Extend `TestParse_TLSSecurityMapped` so `vcn` is asserted to survive round-trip through the Go parser. Fixes #6477 ## Test plan - [x] `go test ./internal/util/link/` - [ ] Import a VLESS/Trojan TLS share link that includes `vcn=<cn>` via a Go path (e.g. external JSON subscription) and confirm outbound `tlsSettings.verifyPeerCertByName` is set - [ ] Confirm UI (TS) import of the same link still behaves as before --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:07:45 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#6295
No description provided.