aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam Devine <dmail00@gmail.com>2011-07-05 13:40:22 +0100
committerSam Roberts <vieuxtech@gmail.com>2012-04-11 13:33:34 -0700
commit9a582525289b98eae15c37ee43f0eb1cd3c925b9 (patch)
tree352ddc5c0b228cb54457768730145d9c3ce98dbd
parent51187ecc90f8ab9408340c6648fdf63be5ea5698 (diff)
downloadluasocket-9a582525289b98eae15c37ee43f0eb1cd3c925b9.tar.gz
luasocket-9a582525289b98eae15c37ee43f0eb1cd3c925b9.tar.bz2
luasocket-9a582525289b98eae15c37ee43f0eb1cd3c925b9.zip
change localhost to loopback ip to prevent error on my mac box????
-rw-r--r--test/testclnt.lua5
1 files 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
447 447
448------------------------------------------------------------------------ 448------------------------------------------------------------------------
449function rebind_test() 449function rebind_test()
450 local c ,c1 = socket.bind("localhost", 0) 450 --local c ,c1 = socket.bind("localhost", 0)
451 if not c then pass ("failed to bind! " .. c .. ' ' .. c1) return end 451 local c ,c1 = socket.bind("127.0.0.1", 0)
452 if not c then pass ("failed to bind! " .. tostring(c) .. ' ' .. tostring(c1)) return end
452 assert(c,c1) 453 assert(c,c1)
453 454
454 local i, p = c:getsockname() 455 local i, p = c:getsockname()