Revision 81057112
src/etc/inc/interfaces.inc | ||
---|---|---|
5959 | 5959 |
function get_real_interface($interface = "wan", $family = "all", $realv6iface = false, $flush = false) { |
5960 | 5960 |
global $g; |
5961 | 5961 |
|
5962 |
if (empty($interface)) { |
|
5963 |
return null; |
|
5964 |
} |
|
5965 |
|
|
5962 | 5966 |
$wanif = NULL; |
5963 | 5967 |
|
5964 | 5968 |
switch ($interface) { |
Also available in: Unified diff
Add check for empty interface
Callers may call get_real_interface() with an empty interface;
bail early if so.