diff --git a/exec/nsh.lua b/exec/nsh.lua index 0889169..dd0431c 100644 --- a/exec/nsh.lua +++ b/exec/nsh.lua @@ -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