mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-12 02:47:46 +00:00
Allow configuration of client and org subnets
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user