I’m working with IPFS and need to ensure my IPFS daemon does not automatically connect to other nodes. I’ve managed to remove default bootstrap nodes by modifying the config file, but the daemon still connects to local nodes due to the mDNS function and other automatic connection behaviors.
Here’s what I’ve tried so far:
Removed default bootstrap nodes by modifying the config file.
Set Discovery.MDNS.Enabled to false in the config file.
However, these steps didn’t fully stop the automatic connections. I understand that changes in the config files alone are not sufficient and that further modification of the source code (specifically around go-libp2p-kad-dht) might be necessary to stop new connections without affecting the basic functionality of IPFS.
How can I modify the go-IPFS (KUBO) source code to achieve this? Are there specific files or functions I should look into? Any guidance on rebuilding the IPFS daemon to ensure no automatic connections are made would be greatly appreciated.