fix| heap-use-after-free detected by ASan
backport| Use PeerIds instead of QByteArrays.