This commit is contained in:
Milo Schwartz 2024-12-30 23:41:28 -05:00
commit d244d6003b
No known key found for this signature in database

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