mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-25 12:08:21 +01:00
Parameter passing updated.
This commit is contained in:
parent
03e063c21e
commit
68f51243b3
@ -1,5 +1,5 @@
|
||||
host = "localhost"
|
||||
port = 8080
|
||||
host = host or "localhost"
|
||||
port = host or 8080
|
||||
if arg then
|
||||
host = arg[1] or host
|
||||
port = arg[2] or port
|
||||
|
@ -1,5 +1,5 @@
|
||||
host = "localhost"
|
||||
port = 8080
|
||||
host = host or "localhost"
|
||||
port = port or 8080
|
||||
if arg then
|
||||
host = arg[1] or host
|
||||
port = arg[2] or port
|
||||
|
Loading…
Reference in New Issue
Block a user