change localhost to loopback ip to prevent error on my mac box????

This commit is contained in:
Liam Devine 2011-07-05 13:40:22 +01:00 committed by Sam Roberts
parent 51187ecc90
commit 9a58252528

View File

@ -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()