]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cmd/nncp-xfer/main.go
MTH
[nncp.git] / src / cmd / nncp-xfer / main.go
index 05b3909a2199f31884e727d0347ca439b388c173..605144b300c47a1737abf6f79c4d66cbb65aa54b 100644 (file)
@@ -29,7 +29,7 @@ import (
        "path/filepath"
 
        "github.com/dustin/go-humanize"
-       "go.cypherpunks.ru/nncp/v6"
+       "go.cypherpunks.ru/nncp/v7"
 )
 
 func usage() {
@@ -57,6 +57,7 @@ func main() {
                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 {
@@ -217,7 +218,7 @@ func main() {
                                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"
                                })