mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
firewall: always display all known gateways on edit
There are a few cases where the gateway code is eligible to drop a gateway on grounds of being disabled, inactive, unconfigured or where the actual interface assigned is disabled. This is undesire because users that configure a gateway won't be able to use it. There are no bad side effects from the former by selecting a whatsoever dysfunctional gateway, because the problem still has to be fixed by the user in the gateway setup itself. Worst of all, removing a disabled but used gateway makes it not show up on edit, effectively wiping its setting on save. This breaks POLA. While there, also enable the null routes for IPv4 and IPv6. PR: https://forum.opnsense.org/index.php?topic=2100
This commit is contained in:
parent
7fb658c195
commit
2db592b1fb
@ -1238,7 +1238,7 @@ include("head.inc");
|
||||
<select name='gateway' class="selectpicker" data-live-search="true" data-size="5" data-width="auto">
|
||||
<option value="" ><?=gettext("default");?></option>
|
||||
<?php
|
||||
foreach(return_gateways_array() as $gwname => $gw):
|
||||
foreach(return_gateways_array(true, true, true) as $gwname => $gw):
|
||||
?>
|
||||
<option value="<?=$gwname;?>" <?=$gwname == $pconfig['gateway'] ? " selected=\"selected\"" : "";?>>
|
||||
<?=$gw['name'];?>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user