Changeset f60d872fd41a742f09bf5a2df1eef6a269dd3974

Show
Ignore:
Timestamp:
01/21/11 20:54:53 (8 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1295643293 +0000
git-parent:

[25cb63a234b1cc264e2f81ab378966376f4fd170]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1295643293 +0000
Message:

support creating ipv6 sockets when we should, fixes #343

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules-lua/noit/HttpClient.lua

    r3496f96 rf60d872  
    3434function HttpClient:new(hooks) 
    3535    local obj = { } 
    36     obj.e = noit.socket() 
    3736    setmetatable(obj, HttpClient) 
    3837    obj.hooks = hooks or { } 
     
    4241function HttpClient:connect(target, port, ssl) 
    4342    if ssl == nil then ssl = false end 
     43    self.e = noit.socket(target) 
    4444    self.target = target 
    4545    self.port = port 
  • src/modules-lua/noit/module/memcached.lua

    rb553f9a rf60d872  
    8282 
    8383  -- connect to the memcache instance 
    84   local e = noit.socket(
     84  local e = noit.socket(check.target_ip
    8585  local rv, err = e:connect(check.target_ip, check.config.port or 11211) 
    8686 
  • src/modules-lua/noit/module/munin.lua

    rb553f9a rf60d872  
    8484 
    8585function initiate(module, check) 
    86   local e = noit.socket(
     86  local e = noit.socket(check.target_ip
    8787  local plugins = check.config.plugins 
    8888  local rv, err = e:connect(check.target_ip, check.config.port or 4949) 
  • src/modules-lua/noit/module/ntp.lua

    rb553f9a rf60d872  
    155155 
    156156function initiate(module, check) 
    157     local s = noit.socket('inet', 'udp') 
     157    local s = noit.socket(check.target_ip, 'udp') 
    158158    local status = { } 
    159159    local cnt = check.config.count or 4 
  • src/modules-lua/noit/module/smtp.lua

    rb553f9a rf60d872  
    150150function initiate(module, check) 
    151151  local starttime = noit.timeval.now() 
    152   local e = noit.socket(
     152  local e = noit.socket(check.target_ip
    153153  local rv, err = e:connect(check.target_ip, check.config.port or 25) 
    154154  check.unavailable() 
  • src/modules-lua/noit/module/tcp.lua

    rb553f9a rf60d872  
    135135  end 
    136136 
    137   local e = noit.socket(
     137  local e = noit.socket(check.target_ip
    138138  local rv, err = e:connect(check.target_ip, check.config.port) 
    139139 
  • src/modules-lua/noit/module/varnish.lua

    rb553f9a rf60d872  
    8080 
    8181function initiate(module, check) 
    82   local e = noit.socket(
     82  local e = noit.socket(check.target_ip
    8383  local rv, err = e:connect(check.target_ip, check.config.port or 8081) 
    8484