diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-07-28 17:57:04 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-07-28 17:57:04 +0300 |
| commit | eaec9e54ad120362cd4f8728db10c36c7a25a4d2 (patch) | |
| tree | 20400f8f5943823650a823dcad3d22183a681063 /web | |
| parent | fafcb2e8e7d4f343ee1d35cfbf1b01ea611a7bd0 (diff) | |
random password button for kcp , quic
Diffstat (limited to 'web')
| -rw-r--r-- | web/assets/js/model/xray.js | 2 | ||||
| -rw-r--r-- | web/html/xui/form/stream/stream_kcp.html | 3 | ||||
| -rw-r--r-- | 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 @@ </a-form-item> <br> <a-form-item label='{{ i18n "password" }}'> - <a-input v-model="inbound.stream.kcp.seed"></a-input> + <a-icon @click="inbound.stream.kcp.seed = RandomUtil.randomSeq(10)" type="sync"> </a-icon> + <a-input v-model="inbound.stream.kcp.seed" style="width: 150px;" ></a-input> </a-form-item> <br> <a-form-item label="MTU"> 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 @@ </a-select> </a-form-item> <a-form-item label='{{ i18n "password" }}'> - <a-input v-model.trim="inbound.stream.quic.key"></a-input> + <a-icon @click="inbound.stream.quic.key = RandomUtil.randomSeq(10)" type="sync"> </a-icon> + <a-input v-model.trim="inbound.stream.quic.key" style="width: 150px;"></a-input> </a-form-item> <a-form-item label='{{ i18n "camouflage" }}'> <a-select v-model="inbound.stream.quic.type" style="width: 280px;" :dropdown-class-name="themeSwitcher.darkCardClass"> |
