RevenantX / LiteNetLib

Lite reliable UDP library for Mono and .NET
https://revenantx.github.io/LiteNetLib/index.html
MIT License
3k stars 489 forks source link

`AllowPeerAddressChange` requires to implement `IPeerAddressChangedListener` #527

Closed starburst997 closed 1 year ago

starburst997 commented 1 year ago

Not intuitive that to enable AllowPeerAddressChange you also need to implements IPeerAddressChangedListener.

There is some necessary code that are parsed in ProcessEvent() which don't get called otherwise since the event is never created.

The alternative would be to be clear in the comments description for AllowPeerAddressChange, but I feel like this is an unnecessary requirement.