summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-05-21 21:44:38 +0000
committerErmal Luçi <eri@pfsense.org>2009-05-21 21:44:58 +0000
commitf8b1131038f1a8ced102c79ed6c72ef9dc05e6f1 (patch)
treeaf5965311271a555f903685cbb586a40aed64ff9 /etc/inc/interfaces.inc
parent868a5b990ab32dbea625c254a6daa264086fd08b (diff)
downloadpfsense-f8b1131038f1a8ced102c79ed6c72ef9dc05e6f1.zip
pfsense-f8b1131038f1a8ced102c79ed6c72ef9dc05e6f1.tar.gz
Make CP multi-interface capable.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 3ec42a3..8e65a1d 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2184,9 +2184,9 @@ function get_real_interface($interface = "wan") {
function guess_interface_from_ip($ipaddress) {
$ret = `/usr/bin/netstat -rn | /usr/bin/awk '/^{$ipaddress}/ {print \$6}'`;
- if(empty($ret)) {
+ if (empty($ret))
return false;
- }
+
return $ret;
}
OpenPOWER on IntegriCloud