Browse Source

Add support to allow tls=0 in vmess:// subscription

Shelikhoo 1 year ago
parent
commit
d799ceda98
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/subscription/entries/nonnative/definitions/vmess.jsont

+ 2 - 2
app/subscription/entries/nonnative/definitions/vmess.jsont

@@ -25,7 +25,7 @@
     {{end}}
 
 {{ $security_type := tryGet . "root_!link_host_!base64_!json_tls_!unquoted" "root_!json_tls" "<default>"}}
-{{ $security_type = $security_type | unalias "none" "" "false"}}
+{{ $security_type = $security_type | unalias "none" "" "false" "0"}}
 
 {{if assertValueIsOneOf $security_type "tls" "utls" "none"| not }}
     unknown security type {{end}}
@@ -63,4 +63,4 @@
     "TagName": {{print $name_annotation "_" $server_address | jsonEncode}}
 
   }
-}
+}