mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-08 14:28:21 +01:00
change localhost to loopback ip to prevent error on my mac box????
This commit is contained in:
parent
51187ecc90
commit
9a58252528
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user