alanmcgovern / Mono.Nat

UPNP and NAT-PMP port forwarding for .NET
https://github.com/mono/Mono.Nat
MIT License
160 stars 156 forks source link

Correctly handle port numbers in Mono.Nat.Pmp.ResponseMessage #29

Closed bp2008 closed 3 years ago

bp2008 commented 3 years ago

Port numbers in Mono.Nat.Pmp.ResponseMessage were being read as Int16 which causes a failure for port numbers 32768 and above.

alanmcgovern commented 3 years ago

This should be covered by these unit tests now: https://github.com/alanmcgovern/Mono.Nat/commit/4c724791988afbfd1921a25896a2359e29532c9d