Browse Source

empty server allowed ips by default

pull/1572/head
Bernd Storath 3 months ago
parent
commit
35a56761e3
No known key found for this signature in database GPG Key ID: D6C85685A555540F
  1. 2
      src/server/utils/WireGuard.ts
  2. 2
      src/services/database/repositories/client.ts

2
src/server/utils/WireGuard.ts

@ -155,7 +155,7 @@ class WireGuard {
expiresAt: null,
enabled: true,
allowedIPs: [...system.userConfig.allowedIps],
serverAllowedIPs: null,
serverAllowedIPs: [],
persistentKeepalive: system.userConfig.persistentKeepalive,
mtu: system.userConfig.mtu,
};

2
src/services/database/repositories/client.ts

@ -17,7 +17,7 @@ export type Client = {
/** ISO String */
expiresAt: string | null;
allowedIPs: string[];
serverAllowedIPs: string[] | null;
serverAllowedIPs: string[];
oneTimeLink: OneTimeLink | null;
/** ISO String */
createdAt: string;

Loading…
Cancel
Save