diff --git a/http_src/vue/page-hosts-to-scan.vue b/http_src/vue/page-hosts-to-scan.vue index 3af1e669a9..75283da0d6 100644 --- a/http_src/vue/page-hosts-to-scan.vue +++ b/http_src/vue/page-hosts-to-scan.vue @@ -96,6 +96,7 @@ const context = ref({ function add_host() { modal_add.value.show(); + refresh_table(); } /* ************************************** */ diff --git a/scripts/lua/modules/host/scan_utils.lua b/scripts/lua/modules/host/scan_utils.lua index f389f37410..df72f6356d 100644 --- a/scripts/lua/modules/host/scan_utils.lua +++ b/scripts/lua/modules/host/scan_utils.lua @@ -70,6 +70,7 @@ function scan_utils.save_host_to_scan(scan_type, scan_params, ip, scan_result, t saved_hosts[#saved_hosts+1] = new_item ntop.setCache(host_to_scan_key, json.encode(saved_hosts)) + return 1 end function scan_utils.retrieve_hosts_to_scan(debug) diff --git a/scripts/lua/rest/v2/add/host/to_scan.lua b/scripts/lua/rest/v2/add/host/to_scan.lua index 9133818e6a..db31db9457 100644 --- a/scripts/lua/rest/v2/add/host/to_scan.lua +++ b/scripts/lua/rest/v2/add/host/to_scan.lua @@ -21,7 +21,6 @@ if isEmptyString(host) or isEmptyString(scan_type) then rest_utils.answer(rest_utils.consts.err.bad_content) end -tprint(scan_params) local function set_host_to_scan(ip, scan_type, scan_params) return scan_utils.save_host_to_scan(scan_type, scan_params, ip) end