function parseMultiaddr (addr) {
  return addr.includes('/http')
    ? multiaddr(addr)
    : multiaddr(addr).encapsulate('/http')
}
Parses multiaddr from the configuration.

@param {string} addr
@returns {import('multiaddr').Multiaddr}