فهرست منبع

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

Milo Schwartz 7 ماه پیش
والد
کامیت
d244d6003b
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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!, {