Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/src/modules-lua/noit/module/resmon.lua b/src/modules-lua/noit/module/resmon.lua
index d23388f..9eb5e5a 100644
--- a/src/modules-lua/noit/module/resmon.lua
+++ b/src/modules-lua/noit/module/resmon.lua
@@ -325,9 +325,9 @@ function initiate(module, check)
-- this is handled later as we need our challenge.
client = HttpClient:new(callbacks)
- rv, err = client:connect(reverse_str, port, use_ssl)
+ rv, err = client:connect(reverse_str, port, use_ssl, headers.Host)
if rv ~= 0 then
- rv, err = client:connect(check.target_ip, port, use_ssl)
+ rv, err = client:connect(check.target_ip, port, use_ssl, headers.Host)
end
if rv ~= 0 then
check.status(str or "unknown error")
@@ -373,9 +373,9 @@ function initiate(module, check)
end
client = HttpClient:new(callbacks)
- rv, err = client:connect(reverse_str, port, use_ssl)
+ rv, err = client:connect(reverse_str, port, use_ssl, headers.Host)
if rv ~= 0 then
- rv, err = client:connect(check.target_ip, port, use_ssl)
+ rv, err = client:connect(check.target_ip, port, use_ssl, headers.Host)
end
if rv ~= 0 then
check.status(err or "unknown error")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.