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:
@ -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
|
||||
|
Reference in New Issue
Block a user