mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-22 02:28:26 +02:00
fix(site): include org subnet prefix when auto-allocating site address (#3523)
This commit is contained in:
@@ -263,7 +263,7 @@ export async function createSite(
|
|||||||
const { value: newClientAddress, release } =
|
const { value: newClientAddress, release } =
|
||||||
await getNextAvailableClientSubnet(orgId);
|
await getNextAvailableClientSubnet(orgId);
|
||||||
releaseSubnetLock = release;
|
releaseSubnetLock = release;
|
||||||
updatedAddress = newClientAddress.split("/")[0];
|
updatedAddress = `${newClientAddress.split("/")[0]}/${org.subnet ? org.subnet.split("/")[1] : "32"}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
let newSite: Site | undefined;
|
let newSite: Site | undefined;
|
||||||
|
|||||||
Reference in New Issue
Block a user