mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-12 22:03:31 +02:00
Fix. setsockname fails with "*" as host.
Add. test_bind.lua
This commit is contained in:
6
test/test_bind.lua
Normal file
6
test/test_bind.lua
Normal file
@ -0,0 +1,6 @@
|
||||
local socket = require "socket"
|
||||
local u = socket.udp() assert(u:setsockname("*", 5088)) u:close()
|
||||
local u = socket.udp() assert(u:setsockname("*", 0)) u:close()
|
||||
local t = socket.tcp() assert(t:bind("*", 5088)) t:close()
|
||||
local t = socket.tcp() assert(t:bind("*", 0)) t:close()
|
||||
print("done!")
|
Reference in New Issue
Block a user