Make sure to include new target

This commit is contained in:
Owen Schwartz 2024-12-30 21:38:33 -05:00
parent 401919b9a5
commit 07d909f8ce

View file

@ -159,6 +159,9 @@ export async function createTarget(
})
.returning();
// add the new target to the targetIps array
targetIps.push(`${targetData.ip}/32`);
if (site.pubKey) {
if (site.type == "wireguard") {
await addPeer(site.exitNodeId!, {