From 5d007435ab88e019b313f89b7baed3be6c96a295 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Tue, 18 Jun 2024 14:24:09 +0200 Subject: some changes undo secret key gen for wireguard --- web/assets/js/model/outbound.js | 1 + 1 file changed, 1 insertion(+) (limited to 'web/assets/js/model/outbound.js') diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index ee954fc1..9b9a8146 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -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; -- cgit v1.2.3