From 590a8f07b9c9677240eb77f63afe23917f00993d Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Thu, 11 Jan 2024 18:26:54 +0330 Subject: wireguard info page Co-Authored-By: Alireza Ahmadi --- web/assets/js/model/dbinbound.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web/assets') 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") { -- cgit v1.2.3