Fix allocation parsing bug.
This commit is contained in:
parent
377fe92f5b
commit
e8a80c6a20
2 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
|
|||
## v0.6.0-pre.7 (Courageous Carniadactylus)
|
||||
### Fixed
|
||||
* `[pre.6]` — Addresses misconfigured console queue that was still sending data way to quickly thus causing the console to explode on some devices when large amounts of data were sent.
|
||||
* `[pre.6]` — Fixes bug in allocation parsing for a node that prevented adding new allocations.
|
||||
|
||||
## v0.6.0-pre.6 (Courageous Carniadactylus)
|
||||
### Fixed
|
||||
|
|
|
@ -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…
Reference in a new issue