From c0a01aa7e1d0375a337e577c1522a8ee0476fc45 Mon Sep 17 00:00:00 2001 From: nnposter Date: Tue, 2 Dec 2025 04:49:44 +0000 Subject: [PATCH] Keep a local function local --- scripts/hnap-info.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/hnap-info.nse b/scripts/hnap-info.nse index 0cc53fc53..6c37a5b19 100644 --- a/scripts/hnap-info.nse +++ b/scripts/hnap-info.nse @@ -74,7 +74,7 @@ local ELEMENTS = {["Type"] = "Type", ["string"] = "SOAPACTIONS", ["SubDeviceURLs"] = "Sub Device URLs"} -function get_text_callback(store, name) +local function get_text_callback(store, name) if ELEMENTS[name] == nil then return end name = ELEMENTS[name] if name == 'SOAPACTIONS' or name == 'Sub Device URLs' or name == 'Type' then