mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-31 06:59:33 +02:00
Fix missing cidr slash
This commit is contained in:
parent
89d1f30448
commit
a96eca383c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue