From 68f51243b38bf1e32d471e9cc9ddf12a25110e80 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Thu, 25 Jan 2001 21:57:07 +0000 Subject: [PATCH] Parameter passing updated. --- samples/listener.lua | 4 ++-- 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 @@ -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 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 @@ -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