Browse Source

remove endpoint from client

pull/1618/head
Bernd Storath 8 months ago
parent
commit
531c10824c
  1. 1
      src/server/utils/WireGuard.ts
  2. 1
      src/server/utils/config.ts
  3. 1
      src/services/database/repositories/client.ts

1
src/server/utils/WireGuard.ts

@ -147,7 +147,6 @@ class WireGuard {
privateKey, privateKey,
publicKey, publicKey,
preSharedKey, preSharedKey,
endpoint: null,
oneTimeLink: null, oneTimeLink: null,
expiresAt: null, expiresAt: null,
enabled: true, enabled: true,

1
src/server/utils/config.ts

@ -68,7 +68,6 @@ export async function migrateConfig(input: unknown) {
privateKey: oldClient.privateKey, privateKey: oldClient.privateKey,
publicKey: oldClient.publicKey, publicKey: oldClient.publicKey,
updatedAt: oldClient.updatedAt, updatedAt: oldClient.updatedAt,
endpoint: null,
expiresAt: null, expiresAt: null,
oneTimeLink: null, oneTimeLink: null,
allowedIPs: db.system.userConfig.allowedIps, allowedIPs: db.system.userConfig.allowedIps,

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

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

Loading…
Cancel
Save