diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-06-18 15:24:09 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-06-18 15:37:44 +0300 |
| commit | 5d007435ab88e019b313f89b7baed3be6c96a295 (patch) | |
| tree | f3cd42b7a90158d5c9415754a20bd16f684cd581 /web/assets/js/model/outbound.js | |
| parent | 9c05aa514b2738310352ebb9dcb6fb98cad50d76 (diff) | |
some changes
undo secret key gen for wireguard
Diffstat (limited to 'web/assets/js/model/outbound.js')
| -rw-r--r-- | web/assets/js/model/outbound.js | 1 |
1 files changed, 1 insertions, 0 deletions
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; |
