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

View File

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