1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 19:32:24 +08:00

Validity time not checked properly

name publishing was failing of bad format.
This commit is contained in:
Simon Kirkby
2014-12-04 20:39:35 +08:00
parent 2ec2c85cbb
commit 284f4a2c47

View File

@ -119,7 +119,7 @@ func ValidateIpnsRecord(k u.Key, val []byte) error {
}
switch entry.GetValidityType() {
case pb.IpnsEntry_EOL:
t, err := u.ParseRFC3339(string(entry.GetValue()))
t, err := u.ParseRFC3339(string(entry.GetValidity()))
if err != nil {
log.Error("Failed parsing time for ipns record EOL")
return err