From e1f8e8efd22331fbb9e62c3e749fd9cded72e5d3 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Thu, 23 Mar 2023 10:02:18 +0100 Subject: [PATCH] Add allowInsecure option --- web/assets/js/model/xray.js | 6 +++--- web/html/xui/form/tls_settings.html | 7 ++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index 6cc7b372..da300a63 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -575,9 +575,9 @@ TlsStreamSettings.Cert = class extends XrayCommonClass { }; TlsStreamSettings.Settings = class extends XrayCommonClass { - constructor(insecure = false, fingerprint = '', serverName = '') { + constructor(allowInsecure = false, fingerprint = '', serverName = '') { super(); - this.inSecure = insecure; + this.allowInsecure = allowInsecure; this.fingerprint = fingerprint; this.serverName = serverName; } @@ -590,7 +590,7 @@ TlsStreamSettings.Settings = class extends XrayCommonClass { } toJson() { return { - allowInsecure: this.inSecure, + allowInsecure: this.allowInsecure, fingerprint: this.fingerprint, serverName: this.serverName, }; diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html index 1ff7a73c..83c4c536 100644 --- a/web/html/xui/form/tls_settings.html +++ b/web/html/xui/form/tls_settings.html @@ -40,11 +40,8 @@ - - - auto - [[ key ]] - + +