jpsim / PeerKit

An open-source Swift framework for building event-driven, zero-config Multipeer Connectivity apps
MIT License
870 stars 72 forks source link

Accept all peer requests that did not originate from device #29

Closed ashtonmeuser closed 5 years ago

ashtonmeuser commented 6 years ago

myPeerID.hashValue not guaranteed to be greater than peerID.hashValue. Accept all requests that don't originate from current device.

jpsim commented 6 years ago

I think the initial logic here was to have a deterministic way to have only one of the two peers accept the connection.