CService::GetKey() didn't include the network in the output. So in theory it would be possible for two IP2 and Tor addresses to have the same output from CService::GetKey().
This would have unexpected results when used in the per-peer bloom filter of known addresses - we may wrongfully assume that a peer knows foo.onion when we have sent to them foo.i2p.
To make this impossible - include the network in CService::GetKey().
Addrman already includes the network separately so it does not need this change. The code would be simplest if addrman also uses GetKey() with the network but that would mess the positions of addresses in existent databases (peers.dat). So, keep a variant of network-less GetKey() for addrman.
Thanks, @l0rinc for pointing me into this. I think it is minor but also the change is minor, so worth fixing IMO.