Stop iroh when it is not used
To make sure that Iroh is not using the network and e.g. does not measure the connection to relay, we need to stop Iroh when it is not used.
@flub started doing it at https://github.com/chatmail/core/tree/flub/peer-channels
Another related issue is that apps that don't need Iroh use mDNS: https://github.com/chatmail/core/issues/6443
Hm, isn't this sort of a pressing issue due to the potential IP address leaks? Or would that not happen unless there is actual data being sent?
I think the only thing that happens if we keep Iroh around is that it constantly pings the relay, which is the same as chatmail server. Or even if a global relay, the only thing that is leaked is that you are using Iroh.
If I'm using my own mail server, it would still be a leak on some level, wouldn't it? But I agree, that seems less problematic than I thought it might be.