Selaa lähdekoodia

[bug] fix wg reserved

Co-Authored-By: Alireza Ahmadi <[email protected]>
MHSanaei 1 vuosi sitten
vanhempi
commit
3cd1b59a6c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      web/assets/js/model/outbound.js

+ 1 - 1
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,
         };