mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-07 22:18:04 +00:00
License info to command line
This commit is contained in:
parent
1ae19a244b
commit
8af4bb14c9
3 changed files with 33 additions and 10 deletions
|
|
@ -662,10 +662,16 @@ static int handle_lua_request(struct mg_connection *conn) {
|
|||
struct stat buf;
|
||||
bool found;
|
||||
|
||||
if(strstr(request_info->uri, "/lua/pro/enterprise/")
|
||||
if(strstr(request_info->uri, "/lua/pro")
|
||||
&& (!ntop->getPrefs()->is_pro_edition())) {
|
||||
return(send_error(conn, 403 /* Forbidden */, request_info->uri,
|
||||
"Professional edition license required"));
|
||||
}
|
||||
|
||||
if(strstr(request_info->uri, "/lua/pro/enterprise")
|
||||
&& (!ntop->getPrefs()->is_enterprise_edition())) {
|
||||
return(send_error(conn, 403 /* Forbidden */, request_info->uri,
|
||||
"Enterprise edition license required: this features in still under development and it will be released in the near future"));
|
||||
"Enterprise edition license required"));
|
||||
}
|
||||
|
||||
if(isCaptiveConnection(conn) && (!isCaptiveURL(request_info->uri))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue