Skip to content

Commit

Permalink
Add support to allow tls=0 in vmess:// subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaokangwang committed Mar 15, 2024
1 parent 61ec84a commit d799ced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/subscription/entries/nonnative/definitions/vmess.jsont
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down Expand Up @@ -63,4 +63,4 @@
"TagName": {{print $name_annotation "_" $server_address | jsonEncode}}

}
}
}

0 comments on commit d799ced

Please sign in to comment.