Reimplement equal method for connection info.