diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-01-24 14:03:55 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-01-24 14:03:55 -0500 |
| commit | ee00f8bf726ae5498d64cff0086b9b7e638936ea (patch) | |
| tree | 710a5b4b715e5fbf1574bc072c4f299e7c9826ff /MediaBrowser.Server.Implementations/Udp | |
| parent | 1af651bc56025935cebe2762d6f36be41530eba1 (diff) | |
added HasSyncJob
Diffstat (limited to 'MediaBrowser.Server.Implementations/Udp')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Udp/UdpServer.cs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/MediaBrowser.Server.Implementations/Udp/UdpServer.cs b/MediaBrowser.Server.Implementations/Udp/UdpServer.cs index 91a4940ae..9dbffa922 100644 --- a/MediaBrowser.Server.Implementations/Udp/UdpServer.cs +++ b/MediaBrowser.Server.Implementations/Udp/UdpServer.cs @@ -83,9 +83,7 @@ namespace MediaBrowser.Server.Implementations.Udp private async void RespondToV1Message(string endpoint) { - var info = _appHost.GetSystemInfo(); - - var localAddress = info.LocalAddress; + var localAddress = _appHost.LocalApiUrl; if (!string.IsNullOrEmpty(localAddress)) { @@ -110,15 +108,15 @@ namespace MediaBrowser.Server.Implementations.Udp private async void RespondToV2Message(string endpoint) { - var info = _appHost.GetSystemInfo(); + var localUrl = _appHost.LocalApiUrl; - if (!string.IsNullOrEmpty(info.LocalAddress)) + if (!string.IsNullOrEmpty(localUrl)) { var response = new ServerDiscoveryInfo { - Address = info.LocalAddress, - Id = info.Id, - Name = info.ServerName + Address = localUrl, + Id = _appHost.SystemId, + Name = _appHost.FriendlyName }; await SendAsync(Encoding.UTF8.GetBytes(_json.SerializeToString(response)), endpoint); |
