From eaec9e54ad120362cd4f8728db10c36c7a25a4d2 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Fri, 28 Jul 2023 18:27:04 +0330 Subject: [PATCH] random password button for kcp , quic --- web/assets/js/model/xray.js | 2 +- web/html/xui/form/stream/stream_kcp.html | 3 ++- web/html/xui/form/stream/stream_quic.html | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index d8dc9f72..462cc125 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -425,7 +425,7 @@ class HttpStreamSettings extends XrayCommonClass { class QuicStreamSettings extends XrayCommonClass { constructor(security=VmessMethods.NONE, - key='', type='none') { + key=RandomUtil.randomSeq(10), type='none') { super(); this.security = security; this.key = key; diff --git a/web/html/xui/form/stream/stream_kcp.html b/web/html/xui/form/stream/stream_kcp.html index 1c7e87bf..0d6df9e3 100644 --- a/web/html/xui/form/stream/stream_kcp.html +++ b/web/html/xui/form/stream/stream_kcp.html @@ -12,7 +12,8 @@
- + +
diff --git a/web/html/xui/form/stream/stream_quic.html b/web/html/xui/form/stream/stream_quic.html index 2dddfd87..53e60b2d 100644 --- a/web/html/xui/form/stream/stream_quic.html +++ b/web/html/xui/form/stream/stream_quic.html @@ -8,7 +8,8 @@ - + +