Use zero encryption on vmess when tls is enabled

This commit is contained in:
lotusproxy 2023-05-22 12:11:59 +00:00
parent 74c025e719
commit b9e0d91b98
No known key found for this signature in database
5 changed files with 5 additions and 0 deletions

View File

@ -120,6 +120,7 @@ class Clash
if ($server['tls']) {
$array['tls'] = true;
$array['cipher'] = 'zero';
if ($server['tlsSettings']) {
$tlsSettings = $server['tlsSettings'];
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))

View File

@ -120,6 +120,7 @@ class ClashMeta
if ($server['tls']) {
$array['tls'] = true;
$array['cipher'] = 'zero';
if ($server['tlsSettings']) {
$tlsSettings = $server['tlsSettings'];
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))

View File

@ -74,6 +74,7 @@ class General
"tls" => $server['tls'] ? "tls" : "",
];
if ($server['tls']) {
$config['scy'] = "zero";
if ($server['tlsSettings']) {
$tlsSettings = $server['tlsSettings'];
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))

View File

@ -74,6 +74,7 @@ class V2rayN
"tls" => $server['tls'] ? "tls" : "",
];
if ($server['tls']) {
$config['scy'] = "zero";
if ($server['tlsSettings']) {
$tlsSettings = $server['tlsSettings'];
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))

View File

@ -62,6 +62,7 @@ class V2rayNG
"tls" => $server['tls'] ? "tls" : "",
];
if ($server['tls']) {
$config['scy'] = "zero";
if ($server['tlsSettings']) {
$tlsSettings = $server['tlsSettings'];
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))