I'm in a place with really spotty internet, and need to work on qri frontend without blowing up the router. This change makes it possible to run qri connect with p2p features disabled. I've renamed lib.Instance.Connect -> lib.Instance.ConnectP2P to clarify that it's really just about p2p connections, and defined a canonical error for trying to connect with disabled p2p via configuration.
Output when running connect without p2p doesn't make allusions to the d.web, and skips listing libp2p addresses (because there are none).
I'm in a place with really spotty internet, and need to work on qri frontend without blowing up the router. This change makes it possible to run qri connect with p2p features disabled. I've renamed lib.Instance.Connect -> lib.Instance.ConnectP2P to clarify that it's really just about p2p connections, and defined a canonical error for trying to connect with disabled p2p via configuration.
Output when running connect without p2p doesn't make allusions to the d.web, and skips listing libp2p addresses (because there are none).