소스 검색

[wg] new peer with one IP

Co-Authored-By: Alireza Ahmadi <[email protected]>
MHSanaei 1 년 전
부모
커밋
91ee6dc7cb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/assets/js/model/xray.js

+ 1 - 1
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) {