[Reconnoiter-devel] [reconnoiter commit] Reconnoiter branch, master, updated. 685b9f90a88faa546c2b5959e4f0530d4ae37f58

git at labs.omniti.com git at labs.omniti.com
Wed Apr 18 14:48:37 EDT 2012


Pushed by: jesus
The branch, master has been updated
       via  685b9f90a88faa546c2b5959e4f0530d4ae37f58 (commit)
       via  cc06de2749ef6e71df675c1503f683bad8ffe7be (commit)
      from  dd4d799bea421af75aa08d90b4fdf3b169c08f8e (commit)

Summary of changes:
 src/modules-lua/noit/module/http.lua |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Log:
commit 685b9f90a88faa546c2b5959e4f0530d4ae37f58
Merge: dd4d799 cc06de2
Author: Theo Schlossnagle <jesus at lethargy.org>
Date:   Wed Apr 18 11:48:18 2012 -0700

    Merge pull request #62 from Kami/fix_r_is_nil_http_dns_resolve
    
    set status to failed to "failed to resolve" if r is nil.


commit cc06de2749ef6e71df675c1503f683bad8ffe7be
Author: Tomaz Muraus <tomaz at tomaz.me>
Date:   Wed Apr 4 15:57:09 2012 -0700

    set status to failed to "failed to resolve" if r is nil.

diff --git a/src/modules-lua/noit/module/http.lua b/src/modules-lua/noit/module/http.lua
index e053070..c1fc7fa 100644
--- a/src/modules-lua/noit/module/http.lua
+++ b/src/modules-lua/noit/module/http.lua
@@ -376,7 +376,7 @@ function initiate(module, check)
             if host ~= nil then
                 headers.Host = host
                 local r = dns:lookup(host)
-                if r.a == nil then
+                if not r or r.a == nil then
                     check.status("failed to resolve " + host)
                     return
                 end




hooks/post-receive
-- 
Reconnoiter


More information about the Reconnoiter-devel mailing list