Fix missing cidr slash

This commit is contained in:
Owen Schwartz 2024-10-28 23:46:58 -04:00
parent 89d1f30448
commit a96eca383c

View file

@ -124,7 +124,7 @@ async function getNextAvailableSubnet(): Promise<string> {
}
// 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;
}