Revision 521cfa2f
Added by Ermal Luçi over 16 years ago
etc/inc/pfsense-utils.inc | ||
---|---|---|
1756 | 1756 |
function convert_friendly_interface_to_real_interface_name($interface) { |
1757 | 1757 |
global $config; |
1758 | 1758 |
|
1759 |
$wanif = $interface;
|
|
1759 |
$wanif = NULL;
|
|
1760 | 1760 |
switch ($interface) { |
1761 | 1761 |
case "l2tp": |
1762 | 1762 |
$wanif = "l2tp"; |
Also available in: Unified diff
Make sure we do not return the interface passed as parameter rather NULL.