Skip to content

Commit 323973f

Browse files
committed
fix: converter judgment conditions
1 parent ed7533c commit 323973f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/convert/converter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,11 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) {
275275
vmess["skip-cert-verify"] = false
276276

277277
vmess["cipher"] = "auto"
278-
if cipher, ok := values["scy"]; ok && cipher != "" {
278+
if cipher, ok := values["scy"].(string); ok && cipher != "" {
279279
vmess["cipher"] = cipher
280280
}
281281

282-
if sni, ok := values["sni"]; ok && sni != "" {
282+
if sni, ok := values["sni"].(string); ok && sni != "" {
283283
vmess["servername"] = sni
284284
}
285285

0 commit comments

Comments
 (0)