lidgren / lidgren-network-gen3

Lidgren Network Library
https://groups.google.com/forum/#!forum/lidgren-network-gen3
MIT License
1.19k stars 331 forks source link

Fix sending broadcast packets #90

Closed CallumDev closed 6 years ago

CallumDev commented 6 years ago

The == operator for IPAddress compares references not values, so target.Address will always not equal ba. Switching to IPAddress.Equals fixes this and allows broadcast packets to be sent on Linux.