From 75b2feff738fca4f5781d705faff3ecefdd5bd47 Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Wed, 16 Jul 2014 17:53:53 +0800 Subject: [PATCH] fix typo --- lualib/socketchannel.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/socketchannel.lua b/lualib/socketchannel.lua index e953fe8f..4b2f28ad 100644 --- a/lualib/socketchannel.lua +++ b/lualib/socketchannel.lua @@ -157,7 +157,7 @@ local function connect_backup(self) if self.__backup then for _, addr in ipairs(self.__backup) do local host, port - if type(host) == "table" then + if type(addr) == "table" then host, port = addr.host, addr.port else host = addr