TheDiscordian / ipfs-sync

A simple daemon which will watch files on your filesystem, mirror them to MFS, automatically update related pins, and update related IPNS keys.
BSD 3-Clause "New" or "Revised" License
95 stars 14 forks source link

Don't crash if unexpected output is received from ipns resolve. #19

Closed TheDiscordian closed 3 years ago

TheDiscordian commented 3 years ago

Currently ResolveIPNS crashes if it doesn't get output in the form of /ipfs/CID as the hash. Detect we got a different output, and handle it.

TheDiscordian commented 3 years ago

Unexpected output seems to occur when the name doesn't resolve, we should re-publish in this instance.