small fixes

This commit is contained in:
Alireza Ahmadi
2024-01-11 01:51:12 +01:00
parent d36118fd95
commit f286080edd
2 changed files with 2 additions and 2 deletions

View File

@@ -985,7 +985,7 @@ Outbound.WireguardSettings.Peer = class extends CommonClass {
return {
publicKey: this.publicKey,
preSharedKey: this.psk.length>0 ? this.psk : undefined,
allowedIPs: this.allowedIPs ? this.allowedIPs.split(",") : undefined,
allowedIPs: this.allowedIPs ? this.allowedIPs : undefined,
endpoint: this.endpoint,
keepAlive: this.keepAlive?? undefined,
};