When opening a stream, connect on all protocols preferring 1.1. When connected via 1.0, use FromNet_1_0 and ToNet_1_0.
good examples can be found in: https://github.com/ipfs/go-bitswap/blob/master/network/ipfs_impl.go