fix field names in example app
This commit is contained in:
parent
0f21a63a81
commit
7691b984a8
|
@ -141,8 +141,8 @@ proc handlePeerNotifications(serverConn: ServerConnection,
|
|||
echo "received message from ", msg.sender
|
||||
let srcPorts = msg.srcPorts.join(",")
|
||||
let dstPorts = msg.dstPorts.join(",")
|
||||
let req = &"{msg.srcIp}|{srcPorts}|{msg.dstIp}|{dstPorts}|{msg.extraData}"
|
||||
asyncCheck acceptConnection(punchdConn, msg.command, req)
|
||||
let req = &"{msg.technique}|{msg.srcIp}|{srcPorts}|{msg.dstIp}|{dstPorts}|{msg.extraArgs}"
|
||||
asyncCheck acceptConnection(punchdConn, "respond", req)
|
||||
except ValueError as e:
|
||||
echo e.msg
|
||||
discard
|
||||
|
|
Loading…
Reference in New Issue