mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-04 21:53:37 +03:00
fix: converter judgment conditions
This commit is contained in:
parent
ed7533ca1a
commit
323973f22f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue