need to include empty extraArgs in tcp-nutss progress message
This commit is contained in:
parent
7691b984a8
commit
c59d6e42f7
|
@ -86,7 +86,7 @@ proc handleRequest(punchd: Punchd, line: string,
|
||||||
proc progress() {.async.} =
|
proc progress() {.async.} =
|
||||||
echo "progress!"
|
echo "progress!"
|
||||||
let content = @["tcp-nutss", $req.srcIp, req.srcPorts.join(","),
|
let content = @["tcp-nutss", $req.srcIp, req.srcPorts.join(","),
|
||||||
$req.dstIp, req.dstPorts.join(",")].join("|")
|
$req.dstIp, req.dstPorts.join(","), ""].join("|")
|
||||||
await sendToClient(unixSock, &"progress|{id}|{content}\n")
|
await sendToClient(unixSock, &"progress|{id}|{content}\n")
|
||||||
sock = await punchd.tcpNutssInitiator.initiate(req.srcPorts[0], req.dstIp,
|
sock = await punchd.tcpNutssInitiator.initiate(req.srcPorts[0], req.dstIp,
|
||||||
req.dstPorts, progress)
|
req.dstPorts, progress)
|
||||||
|
|
Loading…
Reference in New Issue