From d799ceda9800602ba149e70e97e42bb2a2bf7f50 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Fri, 15 Mar 2024 20:09:38 +0000 Subject: [PATCH] Add support to allow tls=0 in vmess:// subscription --- app/subscription/entries/nonnative/definitions/vmess.jsont | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/subscription/entries/nonnative/definitions/vmess.jsont b/app/subscription/entries/nonnative/definitions/vmess.jsont index 7c42af3e176..327a465e814 100644 --- a/app/subscription/entries/nonnative/definitions/vmess.jsont +++ b/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" ""}} -{{ $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}} } -} \ No newline at end of file +}