This commit is contained in:
Cloud Wu
2014-07-16 17:53:53 +08:00
parent 1181730302
commit 75b2feff73

View File

@@ -157,7 +157,7 @@ local function connect_backup(self)
if self.__backup then if self.__backup then
for _, addr in ipairs(self.__backup) do for _, addr in ipairs(self.__backup) do
local host, port local host, port
if type(host) == "table" then if type(addr) == "table" then
host, port = addr.host, addr.port host, port = addr.host, addr.port
else else
host = addr host = addr