Browse Source

empty server allowed ips by default

pull/1572/head
Bernd Storath 6 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, expiresAt: null,
enabled: true, enabled: true,
allowedIPs: [...system.userConfig.allowedIps], allowedIPs: [...system.userConfig.allowedIps],
serverAllowedIPs: null, serverAllowedIPs: [],
persistentKeepalive: system.userConfig.persistentKeepalive, persistentKeepalive: system.userConfig.persistentKeepalive,
mtu: system.userConfig.mtu, mtu: system.userConfig.mtu,
}; };

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

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

Loading…
Cancel
Save