aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Server.Implementations/Connect/ConnectManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Connect/ConnectManager.cs19
1 files changed, 17 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
index 8c0a14366..f1dfae934 100644
--- a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
+++ b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
@@ -31,8 +31,23 @@ namespace MediaBrowser.Server.Implementations.Connect
public string ConnectServerId { get; set; }
public string ConnectAccessKey { get; set; }
- public string WanIpAddress { get; private set; }
+ public string DiscoveredWanIpAddress { get; private set; }
+ public string WanIpAddress
+ {
+ get
+ {
+ var address = _config.Configuration.WanDdns;
+
+ if (string.IsNullOrWhiteSpace(address))
+ {
+ address = DiscoveredWanIpAddress;
+ }
+
+ return address;
+ }
+ }
+
public string WanApiAddress
{
get
@@ -75,7 +90,7 @@ namespace MediaBrowser.Server.Implementations.Connect
internal void OnWanAddressResolved(string address)
{
- WanIpAddress = address;
+ DiscoveredWanIpAddress = address;
//UpdateConnectInfo();
}