diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-06-04 00:50:10 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-06-04 00:50:10 -0400 |
| commit | 9ffb82d96a405fdb35cdd925d8ddbba716592fef (patch) | |
| tree | 413657421566049ab6e37c7c84fed862327d146c /MediaBrowser.Server.Implementations/Connect | |
| parent | 5c5d7d034b0943d00c9f92085368e7a372462212 (diff) | |
remove probing of live tv feeds
Diffstat (limited to 'MediaBrowser.Server.Implementations/Connect')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Connect/ConnectEntryPoint.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Connect/ConnectEntryPoint.cs b/MediaBrowser.Server.Implementations/Connect/ConnectEntryPoint.cs index 3e211d003..6dc83bc74 100644 --- a/MediaBrowser.Server.Implementations/Connect/ConnectEntryPoint.cs +++ b/MediaBrowser.Server.Implementations/Connect/ConnectEntryPoint.cs @@ -54,7 +54,7 @@ namespace MediaBrowser.Server.Implementations.Connect if (IsValid(address)) { - ((ConnectManager) _connectManager).OnWanAddressResolved(address); + ((ConnectManager)_connectManager).OnWanAddressResolved(address); CacheAddress(address); } } @@ -115,7 +115,14 @@ namespace MediaBrowser.Server.Implementations.Connect private bool IsValid(string address) { IPAddress ipAddress; - return IPAddress.TryParse(address, out ipAddress); + var valid = IPAddress.TryParse(address, out ipAddress); + + if (!valid) + { + _logger.Error("{0} is not a valid ip address", address); + } + + return valid; } public void Dispose() |
