X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcmd%2Fnncp-toss%2Fmain.go;h=53c97193e455e6ac137d02575a67de3c16004f8c;hb=cf9363f956cb2d93a581c11ed65c5b02910d10d5;hp=8a3b8c8cbc93d856ab8490d75b5ea0541faf92df;hpb=0639e0c1eb295d1a8e2be31c906ee22394a51d20;p=nncp.git diff --git a/src/cmd/nncp-toss/main.go b/src/cmd/nncp-toss/main.go index 8a3b8c8..53c9719 100644 --- a/src/cmd/nncp-toss/main.go +++ b/src/cmd/nncp-toss/main.go @@ -1,6 +1,6 @@ /* NNCP -- Node to Node copy, utilities for store-and-forward data exchange -Copyright (C) 2016-2021 Sergey Matveev +Copyright (C) 2016-2023 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,7 +26,7 @@ import ( "path/filepath" "time" - "go.cypherpunks.ru/nncp/v7" + "go.cypherpunks.ru/nncp/v8" ) func usage() { @@ -49,6 +49,7 @@ func main() { noExec = flag.Bool("noexec", false, "Do not process \"exec\" packets") noTrns = flag.Bool("notrns", false, "Do not process \"transitional\" packets") noArea = flag.Bool("noarea", false, "Do not process \"area\" packets") + noACK = flag.Bool("noack", false, "Do not process \"ack\" packets") spoolPath = flag.String("spool", "", "Override path to spool") logPath = flag.String("log", "", "Override path to logfile") quiet = flag.Bool("quiet", false, "Print only errors") @@ -110,14 +111,14 @@ func main() { node.Id, nncp.TRx, nice, - *dryRun, *doSeen, *noFile, *noFreq, *noExec, *noTrns, *noArea, + *dryRun, *doSeen, *noFile, *noFreq, *noExec, *noTrns, *noArea, *noACK, ) || isBad if nodeId == *ctx.SelfId { isBad = ctx.Toss( node.Id, nncp.TTx, nice, - *dryRun, false, true, true, true, true, *noArea, + *dryRun, false, true, true, true, true, *noArea, *noACK, ) || isBad } } @@ -150,14 +151,14 @@ func main() { nodeId, nncp.TRx, nice, - *dryRun, *doSeen, *noFile, *noFreq, *noExec, *noTrns, *noArea, + *dryRun, *doSeen, *noFile, *noFreq, *noExec, *noTrns, *noArea, *noACK, ) if *nodeId == *ctx.SelfId { ctx.Toss( nodeId, nncp.TTx, nice, - *dryRun, false, true, true, true, true, *noArea, + *dryRun, false, true, true, true, true, *noArea, *noACK, ) } }