Created
August 9, 2016 15:26
-
-
Save postwait/798ac915ced9b90a2e318f72ff558a50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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