mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Select the device mode to tun if variable device_mode not exist in the configuration
This commit is contained in:
parent
bf87b4d7d1
commit
71edee5e57
@ -671,9 +671,14 @@ if ($savemsg)
|
||||
<select name="device_mode" class="formselect">
|
||||
<?php
|
||||
foreach ($openvpn_dev_mode as $device):
|
||||
$selected = "";
|
||||
if ($pconfig['device_mode'] == $device)
|
||||
$selected = "selected";
|
||||
$selected = "";
|
||||
if (! empty($pconfig['device_mode'])) {
|
||||
if ($pconfig['device_mode'] == $device)
|
||||
$selected = "selected";
|
||||
} else {
|
||||
if ($device == "tun")
|
||||
$selected = "selected";
|
||||
}
|
||||
?>
|
||||
<option value="<?=$device;?>" <?=$selected;?>><?=$device;?></option>
|
||||
<?php endforeach; ?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user