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

@ -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.