some changes

undo secret key gen for wireguard
This commit is contained in:
mhsanaei
2024-06-18 14:24:09 +02:00
parent 9c05aa514b
commit 5d007435ab
5 changed files with 24 additions and 11 deletions

View File

@@ -1084,6 +1084,7 @@ Outbound.WireguardSettings = class extends CommonClass {
super();
this.mtu = mtu;
this.secretKey = secretKey;
this.pubKey = secretKey.length>0 ? Wireguard.generateKeypair(secretKey).publicKey : '';
this.address = address instanceof Array ? address.join(',') : address;
this.workers = workers;
this.domainStrategy = domainStrategy;