code: func cleanupAddressSet(addrs []ma.Multiaddr) []ma.Multiaddr {
  	var public, private []ma.Multiaddr
  
  	for _, a := range addrs {
  		if isRelayAddr(a) {
  			continue
  		}
  
  		if manet.IsPublicAddr(a) || isDNSAddr(a) {
  			public = append(public, a)
  			continue
  		}
  
  		// discard unroutable addrs
  		if manet.IsPrivateAddr(a) {
  			private = append(private, a)
  		}
  	}
  
  	if !hasAddrsplosion(public) {
  		return public
  	}
  
  	return sanitizeAddrsplodedSet(public, private)
  }
docs: // This function cleans up a relay's address set to remove private addresses and curtail
  // addrsplosion.