made nsh default to port 23 properly.

This commit is contained in:
Izaya 2017-09-10 03:14:46 +10:00
parent 1fffceb549
commit f0a175762b
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
tA = {...}
local h,p = tA[1], tonumber(tA[2])
local h,p = tA[1], tonumber(tA[2]) or 23
local function nshcw(h,p)
while true do
local sI = os.getenv("sI")
@ -13,7 +13,7 @@ local function nshcw(h,p)
end
end
end
net.send(h,p or 23,"initnsh2")
net.send(h,p,"initnsh2")
local bt = os.time()
local tp,src,port,msg
repeat