Remote assistance improvements

- Add status page with service log
- Use a different service name to avoid conflicts with other n2n instances
- Split key into community and key, alphanumeric
- Add connection script download
This commit is contained in:
emanuele-f 2018-11-28 17:56:45 +01:00
parent d1f353a4c5
commit de5a58ecf3
9 changed files with 184 additions and 44 deletions

View file

@ -405,7 +405,7 @@ print [[/lua/if_stats.lua\"><i class=\"fa fa-warning\" style=\"color: #B94A48;\"
var status = rsp.remote_assistance.status;
var status_label = (status == "active") ? "success" : "danger";
msg += "&nbsp;<a href=\"]] print(ntop.getHttpPrefix()) print[[/lua/admin/remote_assistance.lua\"><span class=\"label label-" + status_label + "\" title=\"]]
msg += "&nbsp;<a href=\"]] print(ntop.getHttpPrefix()) print[[/lua/admin/remote_assistance.lua?tab=status\"><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>";
}