Browse Source

remove endpoint from client

pull/1648/head
Bernd Storath 7 months ago
parent
commit
a1d4873d35
  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,
publicKey,
preSharedKey,
endpoint: null,
oneTimeLink: null,
expiresAt: null,
enabled: true,

1
src/server/utils/config.ts

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

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

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

Loading…
Cancel
Save