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