"path/filepath"
"github.com/dustin/go-humanize"
- "go.cypherpunks.ru/nncp/v6"
+ "go.cypherpunks.ru/nncp/v7"
)
func usage() {
version = flag.Bool("version", false, "Print version information")
warranty = flag.Bool("warranty", false, "Print warranty information")
)
+ log.SetFlags(log.Lshortfile)
flag.Usage = usage
flag.Parse()
if *warranty {
continue
}
pktEnc, pktEncRaw, err := ctx.HdrRead(fd)
- if err != nil || pktEnc.Magic != nncp.MagicNNCPEv4 {
+ if err != nil || pktEnc.Magic != nncp.MagicNNCPEv5 {
ctx.LogD("xfer-rx-not-packet", les, func(les nncp.LEs) string {
return logMsg(les) + ": is not a packet"
})