Commit 4795ff34 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

Merge pull request #401 from zignig/namesys_fix

Validity time not checked properly
parents 2ec2c85c 284f4a2c
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment