mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-30 14:39:29 +02:00
Make sure to include new target
This commit is contained in:
parent
401919b9a5
commit
07d909f8ce
1 changed files with 3 additions and 0 deletions
|
@ -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!, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue