Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2024-02-22 22:10:25 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-02-22 22:10:25 +0300
commit3cd1b59a6c0116446c9a6085d482ea9ba4c3e4ea (patch)
tree961042cbeb10039ca1c7e65d9ad6e41c30a40f08
parent7ec6989c992d25d4993d78508b87db0582d6aa7a (diff)
[bug] fix wg reserved
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
-rw-r--r--web/assets/js/model/outbound.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js
index 6a52563d..05248b77 100644
--- a/web/assets/js/model/outbound.js
+++ b/web/assets/js/model/outbound.js
@@ -957,7 +957,7 @@ Outbound.WireguardSettings = class extends CommonClass {
address: this.address ? this.address.split(",") : [],
workers: this.workers?? undefined,
domainStrategy: WireguardDomainStrategy.includes(this.domainStrategy) ? this.domainStrategy : undefined,
- reserved: this.reserved ? this.reserved.split(",") : undefined,
+ reserved: this.reserved ? this.reserved.split(",").map(Number) : undefined,
peers: Outbound.WireguardSettings.Peer.toJsonArray(this.peers),
kernelMode: this.kernelMode,
};