Make sure to include new target

This commit is contained in:
Owen Schwartz 2024-12-30 21:38:33 -05:00
parent 152a62a27b
commit 2e7e0a4287
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD

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!, {