From 5ce40e300a659895817c242b58f7d0cf6ee04b66 Mon Sep 17 00:00:00 2001 From: cola-prince Date: Sat, 21 Mar 2026 13:21:07 +0800 Subject: [PATCH] fix: correct servername handling for vless/vmess --- sub/clashService.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sub/clashService.go b/sub/clashService.go index 79d9248..1fe7235 100644 --- a/sub/clashService.go +++ b/sub/clashService.go @@ -251,10 +251,10 @@ func (s *ClashService) ConvertToClashMeta(outbounds *[]map[string]interface{}) ( } } if sni, ok := tls["server_name"].(string); ok { - if t == "http" { - proxy["sni"] = sni - } else { + if t == "vless" || t == "vmess" { proxy["servername"] = sni + } else { + proxy["sni"] = sni } } if insecure, ok := tls["insecure"].(bool); ok && insecure {