mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-28 06:34:50 +02:00
Allow configuration of client and org subnets
This commit is contained in:
parent
569635f3ed
commit
db0328fa71
10 changed files with 218 additions and 48 deletions
|
@ -274,4 +274,13 @@ export async function getNextAvailableOrgSubnet(): Promise<string> {
|
|||
}
|
||||
|
||||
return subnet;
|
||||
}
|
||||
|
||||
export function isValidCidr(cidr: string): boolean {
|
||||
try {
|
||||
cidrToRange(cidr);
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue