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