mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-28 07:46:36 +00:00
Fix missing cidr slash
This commit is contained in:
@@ -124,7 +124,7 @@ async function getNextAvailableSubnet(): Promise<string> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// replace the last octet with 1
|
// replace the last octet with 1
|
||||||
subnet = subnet.split('.').slice(0, 3).join('.') + '.1' + subnet.split('/')[1];
|
subnet = subnet.split('.').slice(0, 3).join('.') + '.1' + '/' + subnet.split('/')[1];
|
||||||
return subnet;
|
return subnet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user