Is there any way that you can provide an example of this?
I have been trying to get this to work for some time now and the best I have is an instance of libp2p connecting to the node with a custom protector, but when I try to pass that instance or bundle into IPFS, IPFS won't connect.
I have also tried this example from IPFS https://github.com/ipfs/js-ipfs/tree/master/examples/custom-libp2p, but when adding a custom protector I am met with: "connProtector is not allowed"
Maybe i'm missing something?
const Protector = require('libp2p-pnet')
connProtector: new Protector(swarmKeyBuffer),
ipfs config Addresses: