aboutsummaryrefslogtreecommitdiffstats
path: root/packages/ntop
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-06 19:01:44 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-06 19:01:44 +0000
commit4cb7b96032f2b96ce29dff2ced5f717b992d037b (patch)
tree28e82c3a30a348b71eac81b3ea16f7a8af874ce9 /packages/ntop
parente7a94705c421e580042468d13f3325f3ee886503 (diff)
downloadpfsense-packages-4cb7b96032f2b96ce29dff2ced5f717b992d037b.tar.gz
pfsense-packages-4cb7b96032f2b96ce29dff2ced5f717b992d037b.tar.bz2
pfsense-packages-4cb7b96032f2b96ce29dff2ced5f717b992d037b.zip
Default to LAN if the user does not specify a interface
Diffstat (limited to 'packages/ntop')
-rw-r--r--packages/ntop/ntop.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/ntop/ntop.xml b/packages/ntop/ntop.xml
index 9b8e4482..b8cd8932 100644
--- a/packages/ntop/ntop.xml
+++ b/packages/ntop/ntop.xml
@@ -61,12 +61,16 @@
$interfaces = " -i ";
$ifaces=$_POST['iface'];
$isfirst = 0;
+ $lan = $config['interfaces']['lan']['if'];
foreach($ifaces as $element=>$if)
{
if($isfirst == 1) $interfaces .= ",";
$interfaces .= convert_friendly_interface_to_real_interface_name($ifaces[$element]);
$isfirst = 1;
}
+ $if($interfaces == "") {
+ $interfaces = $lan;
+ }
system("/usr/local/bin/ntop --set-admin-password=" . $_POST['password']);
system("killall ntop 2>/dev/null");
system("rm /usr/local/etc/rc.d/ntop.sh");