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 @@
{{ 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 ]] | +
{{ i18n "pages.xray.wireguard.publicKey" }} | +[[ peer.publicKey ]] | +
{{ i18n "pages.xray.wireguard.psk" }} | +[[ peer.psk ]] | +
{{ i18n "pages.xray.wireguard.allowedIPs" }} | +[[ peer.allowedIPs.join(",") ]] | +
Keep Alive | +[[ peer.keepAlive ]] | +