mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not create faulty gateway entires with just defaultgw set it breaks logic.
This commit is contained in:
parent
79afe4e471
commit
2f678757bf
@ -490,10 +490,8 @@ if ($_POST) {
|
||||
/* for dynamic interfaces we tack a gateway item onto the array to prevent system
|
||||
* log messages from appearing. They can also manually add these items */
|
||||
/* 1st added gateway gets a default bit */
|
||||
$gateway_item = array();
|
||||
if(empty($a_gateways)) {
|
||||
$gateway_item['defaultgw'] = "true";
|
||||
} else {
|
||||
if(!empty($a_gateways)) {
|
||||
$gateway_item = array();
|
||||
/* check for duplicates */
|
||||
$skip = false;
|
||||
foreach($a_gateways as $item) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user