mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Simplify logic
This commit is contained in:
parent
6db038f768
commit
9a2d3fe1bf
@ -163,14 +163,10 @@ if ($config['openvpn']["openvpn-server"] || $config['openvpn']["openvpn-client"]
|
||||
}
|
||||
|
||||
if (!$if || !isset($iflist[$if])) {
|
||||
if ("any" == $if) {
|
||||
if ($if != "any" && $if != "FloatingRules" && isset($iflist['wan'])) {
|
||||
$if = "wan";
|
||||
} else {
|
||||
$if = "FloatingRules";
|
||||
} else if ("FloatingRules" != $if) {
|
||||
if (isset($iflist['wan'])) {
|
||||
$if = "wan";
|
||||
} else {
|
||||
$if = "FloatingRules";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user