Project

General

Profile

« Previous | Next » 

Revision 9a2d3fe1

Added by Stilez y almost 9 years ago

Simplify logic

View differences:

src/usr/local/www/firewall_rules.php
163 163
}
164 164

  
165 165
if (!$if || !isset($iflist[$if])) {
166
	if ("any" == $if) {
166
	if ($if != "any" && $if != "FloatingRules" && isset($iflist['wan'])) {
167
		$if = "wan";
168
	} else {
167 169
		$if = "FloatingRules";
168
	} else if ("FloatingRules" != $if) {
169
		if (isset($iflist['wan'])) {
170
			$if = "wan";
171
		} else {
172
			$if = "FloatingRules";
173
		}
174 170
	}
175 171
}
176 172

  

Also available in: Unified diff