- | Peer [[ index + 1 ]] |
+ Peer [[ index + 1 ]] |
+ | {{ i18n "pages.xray.wireguard.secretKey" }} |
+ [[ peer.privateKey ]] |
+
+
| {{ 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 ]] |
+
+ |
+
+
+ Config
+
+
+
+
+
+
+
+
+ |
+
@@ -323,7 +349,11 @@
this.clientSettings = this.inbound.clients ? this.inbound.clients[index] : null;
this.isExpired = this.inbound.clients ? this.inbound.isExpiry(index): this.dbInbound.isExpiry;
this.clientStats = this.inbound.clients ? this.dbInbound.clientStats.find(row => row.email === this.clientSettings.email) : [];
- this.links = this.inbound.genAllLinks(this.dbInbound.remark, app.remarkModel, this.clientSettings);
+ if (this.inbound.protocol == Protocols.WIREGUARD){
+ this.links = this.inbound.genInboundLinks(dbInbound.remark).split('\r\n')
+ } else {
+ this.links = this.inbound.genAllLinks(this.dbInbound.remark, app.remarkModel, this.clientSettings);
+ }
if (this.clientSettings) {
if (this.clientSettings.subId) {
this.subLink = this.genSubLink(this.clientSettings.subId);
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index a8a03b3e..cdf38664 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -203,7 +203,7 @@