diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-10-27 19:53:57 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-10-27 19:53:57 -0400 |
| commit | 8e57296f6986f13578f37647640fcaf49c9981f1 (patch) | |
| tree | 4762b6c0f260802b95c73f1fe1edcf1782b6cec4 /Mono.Nat/Upnp/Upnp.cs | |
| parent | 0c663a99dc617869f591e97dd2e4ca6f3bd8b207 (diff) | |
lighten up nat project
Diffstat (limited to 'Mono.Nat/Upnp/Upnp.cs')
| -rw-r--r-- | Mono.Nat/Upnp/Upnp.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Mono.Nat/Upnp/Upnp.cs b/Mono.Nat/Upnp/Upnp.cs index e44a51c24..75e2ade8b 100644 --- a/Mono.Nat/Upnp/Upnp.cs +++ b/Mono.Nat/Upnp/Upnp.cs @@ -33,11 +33,19 @@ using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; +using MediaBrowser.Model.Logging; namespace Mono.Nat.Upnp { internal class Upnp { + protected readonly ILogger Logger; + + public Upnp(ILogger logger) + { + Logger = logger; + } + public UpnpNatDevice Handle(IPAddress localAddress, byte[] response, IPEndPoint endpoint) { // Convert it to a string for easy parsing @@ -77,7 +85,7 @@ namespace Mono.Nat.Upnp throw new NotSupportedException("Received non-supported device type"); // We have an internet gateway device now - return new UpnpNatDevice(localAddress, dataString, urn); + return new UpnpNatDevice(localAddress, dataString, urn, Logger); } } } |
