X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fnncp%2Fcfg.go;h=d948a274086438719aa6e09ae36c08f27405c93a;hb=535d386941ae38abbaa8e1a6df69a5e739058011;hp=0a1b1d8a0a86d73874e221b8087f5d82ac4734c6;hpb=c30215635e9a3bac86766077846725d9b0378f63;p=nncp.git diff --git a/src/cypherpunks.ru/nncp/cfg.go b/src/cypherpunks.ru/nncp/cfg.go index 0a1b1d8..d948a27 100644 --- a/src/cypherpunks.ru/nncp/cfg.go +++ b/src/cypherpunks.ru/nncp/cfg.go @@ -339,7 +339,7 @@ func (nodeOur *NodeOur) ToYAML() string { func CfgParse(data []byte) (*Ctx, error) { var err error - if bytes.Compare(data[:8], MagicNNCPBv1[:]) == 0 { + if bytes.Compare(data[:8], MagicNNCPBv2[:]) == 0 { os.Stderr.WriteString("Passphrase:") password, err := terminal.ReadPassword(0) if err != nil {