Fix allocation parsing bug.

This commit is contained in:
Dane Everitt 2017-03-19 11:13:15 -04:00
parent 377fe92f5b
commit e8a80c6a20
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
## v0.6.0-pre.7 (Courageous Carniadactylus) ## v0.6.0-pre.7 (Courageous Carniadactylus)
### Fixed ### 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]` — 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) ## v0.6.0-pre.6 (Courageous Carniadactylus)
### Fixed ### Fixed

View file

@ -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 (Network::parse(gethostbyname($data['allocation_ip'])) as $ip) {
foreach ($data['allocation_ports'] as $port) { foreach ($data['allocation_ports'] as $port) {
// Determine if this is a valid single port, or a valid port range. // Determine if this is a valid single port, or a valid port range.