mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 09:52:20 +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() {
|
switch entry.GetValidityType() {
|
||||||
case pb.IpnsEntry_EOL:
|
case pb.IpnsEntry_EOL:
|
||||||
t, err := u.ParseRFC3339(string(entry.GetValue()))
|
t, err := u.ParseRFC3339(string(entry.GetValidity()))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Failed parsing time for ipns record EOL")
|
log.Error("Failed parsing time for ipns record EOL")
|
||||||
return err
|
return err
|
||||||
|
Reference in New Issue
Block a user