Fix allocation parsing bug.
This commit is contained in:
parent
377fe92f5b
commit
e8a80c6a20
2 changed files with 2 additions and 1 deletions
|
@ -203,7 +203,7 @@ class NodeRepository
|
|||
}
|
||||
}
|
||||
|
||||
DB::transaction(function () use ($parsed, $node, $data) {
|
||||
DB::transaction(function () use ($data, $node) {
|
||||
foreach (Network::parse(gethostbyname($data['allocation_ip'])) as $ip) {
|
||||
foreach ($data['allocation_ports'] as $port) {
|
||||
// Determine if this is a valid single port, or a valid port range.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue