aboutsummaryrefslogtreecommitdiff
path: root/Mono.Nat/Upnp/Upnp.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Mono.Nat/Upnp/Upnp.cs')
-rw-r--r--Mono.Nat/Upnp/Upnp.cs10
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);
}
}
}