Browse Source

Merge branch 'main' of https://github.com/fosrl/pangolin

Milo Schwartz 7 months ago
parent
commit
d244d6003b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      server/routers/target/createTarget.ts

+ 3 - 0
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!, {