Skip to content

Releases: alanmcgovern/Mono.Nat

v3.0.4

19 Oct 04:01
Compare
Choose a tag to compare

General

Small performance improvements under .NET 6.0. The ValueTask based UdpClient APIs are used when executing under .NET 6.0 or newer which provides a low allocation way to send/receive UDP messages.

v3.0.3

31 Mar 13:41
Compare
Choose a tag to compare

General

  • Minor improvement to performance when listening for broadcast messages from multiple sockets.

Full Changelog: release-v3.0.2...release-v3.0.3

v3.0.2

07 Nov 10:53
Compare
Choose a tag to compare

General

  • Fixes a NullReferenceException caused by StackFrame.GetMethod ().ReflectedType when running under UWP.

v3.0.1

11 Nov 23:06
Compare
Choose a tag to compare

General

  • Remove a blocking Task.Result call from, eliminating the possibility of a deadlock.
  • Fixed a bug where high port numbers in NAT-PMP messages could be misparsed. Thanks to @bp2008 .

v3.0.0

07 Sep 23:29
Compare
Choose a tag to compare

General:

  • Removed NatUtility.DeviceLost as it was never a usable event.
  • Added the ability to manually pass messages into Mono.Nat if another part of the application has already bound to the normal upnp listening port.
  • Improved logging via Logger.Factory
  • Searchers are disposed when NatUtility.StopDiscovery is invoked, and (re-)created when NatUtility.StartDiscovery is invoked. In addition any previously detected devices are cleared when StopDiscovery is invoked.

v2.0.2

30 Jul 23:04
Compare
Choose a tag to compare

General

  • Minor memory optimisations contributed by Bond-009.
  • Improved support for some devices which do not correctly respond to an ssdp:all message. In addition to sending a request for all services, the library additionally searches for WanPPPConnection and WanIPConnection services.
  • Calling NatUtility.StopDiscovery clears the detected devices, thus allow devices to be reliably re-discovered if StartDiscovery is called again at a later point.

v2.0.1

10 Apr 14:03
Compare
Choose a tag to compare

General

  • Mono.Nat now tries to generate a reasonably unique Description for each port mapping. Some routers will refuse to create a new port map if the description matches the description of an existing port mapping, even if the ports are different.

  • Improved diagnostic logs are emitted when when NatUtility.Logger is not null.

  • Mono.Nat issues uPnP discovery requests using each enabled network adapter. If a device is discovered, Mono.Nat will now ensure all network requests use the same adapter.

v2.0.0

10 Apr 13:43
Compare
Choose a tag to compare

General

  • Migrated to .NET Standard 2.0 and migrated to a Task based system, which works much better with the modern async/await support.

  • Some minor bugfixes to uPnP to better support Virgin Media Superhub 3 routers.