made nsh default to port 23 properly.
This commit is contained in:
parent
1fffceb549
commit
f0a175762b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user