From 323973f22fcd9cf2bf04762249231a164ff10e0a Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Fri, 4 Apr 2025 00:22:52 +0800 Subject: [PATCH] fix: converter judgment conditions --- common/convert/converter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/convert/converter.go b/common/convert/converter.go index cb5730d2..acf6abbc 100644 --- a/common/convert/converter.go +++ b/common/convert/converter.go @@ -275,11 +275,11 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) { vmess["skip-cert-verify"] = false vmess["cipher"] = "auto" - if cipher, ok := values["scy"]; ok && cipher != "" { + if cipher, ok := values["scy"].(string); ok && cipher != "" { vmess["cipher"] = cipher } - if sni, ok := values["sni"]; ok && sni != "" { + if sni, ok := values["sni"].(string); ok && sni != "" { vmess["servername"] = sni }