From 590a8f07b9c9677240eb77f63afe23917f00993d Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Thu, 11 Jan 2024 18:26:54 +0330 Subject: [PATCH] wireguard info page Co-Authored-By: Alireza Ahmadi --- web/assets/js/model/dbinbound.js | 4 +++ web/html/xui/inbound_info_modal.html | 39 ++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/web/assets/js/model/dbinbound.js b/web/assets/js/model/dbinbound.js index d8d0b94f..9f6f04c6 100644 --- a/web/assets/js/model/dbinbound.js +++ b/web/assets/js/model/dbinbound.js @@ -56,6 +56,10 @@ class DBInbound { return this.protocol === Protocols.HTTP; } + get isWireguard() { + return this.protocol === Protocols.WIREGUARD; + } + get address() { let address = location.hostname; if (!ObjectUtil.isEmpty(this.listen) && this.listen !== "0.0.0.0") { diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html index cf1a032b..cdcabad9 100644 --- a/web/html/xui/inbound_info_modal.html +++ b/web/html/xui/inbound_info_modal.html @@ -264,6 +264,45 @@ [[ account.pass ]] + + + + + + + + + + + + + + + + + +
{{ i18n "pages.xray.wireguard.secretKey" }}[[ inbound.settings.secretKey ]]
{{ i18n "pages.xray.wireguard.publicKey" }}[[ inbound.settings.pubKey ]]
MTU[[ inbound.settings.mtu ]]
Kernel Mode[[ inbound.settings.kernelMode ]]