diff --git a/server/routers/target/createTarget.ts b/server/routers/target/createTarget.ts index caa84485..71b1a551 100644 --- a/server/routers/target/createTarget.ts +++ b/server/routers/target/createTarget.ts @@ -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!, {