diff options
-rw-r--r-- | samples/listener.lua | 4 | ||||
-rw-r--r-- | samples/talker.lua | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/samples/listener.lua b/samples/listener.lua index a47d9a3..5e1eb02 100644 --- a/samples/listener.lua +++ b/samples/listener.lua | |||
@@ -1,5 +1,5 @@ | |||
1 | host = "localhost" | 1 | host = host or "localhost" |
2 | port = 8080 | 2 | port = host or 8080 |
3 | if arg then | 3 | if arg then |
4 | host = arg[1] or host | 4 | host = arg[1] or host |
5 | port = arg[2] or port | 5 | port = arg[2] or port |
diff --git a/samples/talker.lua b/samples/talker.lua index b3313e6..d66cf66 100644 --- a/samples/talker.lua +++ b/samples/talker.lua | |||
@@ -1,5 +1,5 @@ | |||
1 | host = "localhost" | 1 | host = host or "localhost" |
2 | port = 8080 | 2 | port = port or 8080 |
3 | if arg then | 3 | if arg then |
4 | host = arg[1] or host | 4 | host = arg[1] or host |
5 | port = arg[2] or port | 5 | port = arg[2] or port |