Skip to content

Commit

Permalink
Fix some bug
Browse files Browse the repository at this point in the history
  • Loading branch information
destan19 committed Mar 16, 2021
1 parent 488298c commit 4169935
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion luci-app-oaf/luasrc/view/admin_network/user_status.htm
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,16 @@
tr.insertCell(-1).innerHTML = hostname;
tr.insertCell(-1).innerHTML = "<a href='<%=url('admin/network/appfilter/')%>"+devlist[i].mac+"'>"+devlist[i].mac+"</a>";
tr.insertCell(-1).innerHTML = devlist[i].ip;
var app_list_str="--";
var app_list_str="";
for (var j = 0; j < devlist[i].applist.length; j++){
console.log(devlist[i].applist[j].name);
app_list_str+=devlist[i].applist[j].name;
if (j != devlist[i].applist.length - 1)
app_list_str+=","
}
if(app_list_str == ""){
app_list_str="--"
}
tr.insertCell(-1).innerHTML = app_list_str;
}
}
Expand Down
2 changes: 1 addition & 1 deletion luci-app-oaf/root/etc/uci-defaults/91_luci-oaf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
uci -q batch <<-EOF >/dev/null
del ucitrack.@appfilter[-1]
add ucitrack appfilter
set ucitrack.@appfilter[-1].exec="/etc/init.d/appfilter reload"
set ucitrack.@appfilter[-1].exec="/etc/init.d/appfilter restart"
commit ucitrack
EOF

Expand Down

0 comments on commit 4169935

Please sign in to comment.