|
@@ -37,6 +37,7 @@ trait DHCPOptionTrait
|
|
|
$rtr = array();
|
|
|
foreach(preg_split("|\n|", $config) as $line){
|
|
|
$p = preg_split("|\s+|",$line);
|
|
|
+ if(trim($line) === "") continue;
|
|
|
if($p[0] === "option"){
|
|
|
if($p[1] === "routers"){
|
|
|
$rtr["routers"] = preg_replace("|;$|", "", $p[2]);
|