mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
Implement remote assistance
- It enables a VPN via n2n - Remote assistance will be automatically disabled after 1 day - Optionally it's possible to give admin access to the support
This commit is contained in:
parent
578e1362da
commit
eac278a28d
19 changed files with 857 additions and 59 deletions
|
|
@ -401,6 +401,15 @@ print [[/lua/if_stats.lua\"><i class=\"fa fa-warning\" style=\"color: #B94A48;\"
|
|||
msg += addCommas(rsp.num_live_captures)+" <i class=\"fa fa-download fa-lg\"></i></A> </span> ";
|
||||
}
|
||||
|
||||
if(typeof rsp.remote_assistance !== "undefined") {
|
||||
var status = rsp.remote_assistance.status;
|
||||
var status_label = (status == "active") ? "success" : "danger";
|
||||
|
||||
msg += " <a href=\"]] print(ntop.getHttpPrefix()) print[[/lua/admin/remote_assistance.lua\"><span class=\"label label-" + status_label + "\" title=\"]]
|
||||
print(i18n("remote_assistance.remote_assistance")) print[[\">";
|
||||
msg += "<i class=\"fa fa-commenting fa-lg\"></i></span></a>";
|
||||
}
|
||||
|
||||
if(typeof rsp.traffic_recording !== "undefined") {
|
||||
var status_label="primary";
|
||||
var status_title="]] print(i18n("traffic_recording.recording")) print [[";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue