浏览代码

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