Skip to content

Commit

Permalink
Routing, gateways. minor regression in getDefaultGW() we should only …
Browse files Browse the repository at this point in the history
…return a gateway with an address as default here. for #2279
  • Loading branch information
AdSchellevis committed Apr 14, 2019
1 parent e053087 commit bfca97e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php
Expand Up @@ -266,8 +266,9 @@ public function getDefaultGW($skip=null, $ipproto='inet')
continue;
} elseif (!empty($gateway['disabled'])) {
continue;
} elseif (!empty($gateway['gateway'])) {
return $gateway;
}
return $gateway;
}
}
// not found
Expand Down

0 comments on commit bfca97e

Please sign in to comment.