Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2024-02-21 14:37:29 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-02-21 14:37:29 +0300
commit91ee6dc7cb88cead993ab83598a98515d3a3f111 (patch)
tree4d7ef8fd35b60dcaa55fc518773f3e3708cbcc3f /web/assets
parent7708bb9af2a30fe5b815ff6d538a75ab7bff2e8a (diff)
[wg] new peer with one IP
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/assets')
-rw-r--r--web/assets/js/model/xray.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index 80c81da2..5bee1ac7 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -2295,7 +2295,7 @@ Inbound.WireguardSettings = class extends XrayCommonClass {
}
addPeer() {
- this.peers.push(new Inbound.WireguardSettings.Peer());
+ this.peers.push(new Inbound.WireguardSettings.Peer(null,null,'',['10.0.0.' + (this.peers.length+2)]));
}
delPeer(index) {