From 9a582525289b98eae15c37ee43f0eb1cd3c925b9 Mon Sep 17 00:00:00 2001 From: Liam Devine Date: Tue, 5 Jul 2011 13:40:22 +0100 Subject: [PATCH] change localhost to loopback ip to prevent error on my mac box???? --- test/testclnt.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/testclnt.lua b/test/testclnt.lua index ad3741a..b4b7063 100644 --- a/test/testclnt.lua +++ b/test/testclnt.lua @@ -447,8 +447,9 @@ end ------------------------------------------------------------------------ function rebind_test() - local c ,c1 = socket.bind("localhost", 0) - if not c then pass ("failed to bind! " .. c .. ' ' .. c1) return end + --local c ,c1 = socket.bind("localhost", 0) + local c ,c1 = socket.bind("127.0.0.1", 0) + if not c then pass ("failed to bind! " .. tostring(c) .. ' ' .. tostring(c1)) return end assert(c,c1) local i, p = c:getsockname()