ctx.LogD("nncp-bundle", sds, "Bad packet structure")
continue
}
- if pktEnc.Magic != nncp.MagicNNCPEv2 {
+ if pktEnc.Magic != nncp.MagicNNCPEv3 {
ctx.LogD("nncp-bundle", sds, "Bad packet magic number")
continue
}
ctx.LogD("nncp-bundle", sds, "Packet already exists")
continue
}
- if _, err = os.Stat(dstPath + nncp.SeenPostfix); err == nil || !os.IsNotExist(err) {
+ if _, err = os.Stat(dstPath + nncp.SeenSuffix); err == nil || !os.IsNotExist(err) {
ctx.LogD("nncp-bundle", sds, "Packet already exists")
continue
}