[wg] new peer with one IP

This commit is contained in:
Alireza Ahmadi
2024-02-20 18:06:24 +01:00
parent d6bf64f760
commit 6ad558bd36

View File

@@ -2096,7 +2096,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) {