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

Allow different internal and external ports on port forwarding #108

Closed SimonHartfield closed 5 years ago

SimonHartfield commented 5 years ago

Slightly modified the port forwarding requests for separate ports when two machines on the same network need the same ports to be forwarded. I also renamed the property on the delete forwarding function to match the name of the same port on the add forwarding function so that it was clear which port was required.

Could potentially have the internal port fallback to the Port property of the NetPeer object but I thought this was safer.

Also looks like tabs vs spaces are fighting. Sorry about that.