apple / swift-distributed-actors

Peer-to-peer cluster implementation for Swift Distributed Actors
https://apple.github.io/swift-distributed-actors/
Apache License 2.0
597 stars 56 forks source link

Special handle localhost/127.0.0.1 in handshakes? #590

Open ktoso opened 4 years ago

ktoso commented 4 years ago

When we get handshakes we compare the string of the passed in host i.e. "localhost" to what we bound to.

If we bound to 127.0.0.1 but someone tries to handshake with localhost, we'd reject this (!).

Ideas

ktoso commented 4 years ago

See also: https://github.com/apple/swift-distributed-actors/pull/577#discussion_r416197243