Closed
Description
Due to kademlia not having a client mode implemented, we would not be able to stop queries to the node from other peers when connected unless the protocol itself is disabled, which may not always be desirable since the node may want to query the DHT for information but not want to be queried itself. Once libp2p/rust-libp2p#2521 (or any related PR, pending libp2p/rust-libp2p#2680) has been merged in, remove the Toggle
around the protocol and allow it to be enabled completely with a option to toggle between client and server mode.