From 284f4a2c475b585804daee27b4daf20af23b08f4 Mon Sep 17 00:00:00 2001 From: Simon Kirkby Date: Thu, 4 Dec 2014 20:39:35 +0800 Subject: [PATCH] Validity time not checked properly name publishing was failing of bad format. --- namesys/publisher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/namesys/publisher.go b/namesys/publisher.go index a6be2a570..be838b2f0 100644 --- a/namesys/publisher.go +++ b/namesys/publisher.go @@ -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