aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Networking
AgeCommit message (Collapse)Author
2020-09-12Large number of filesJim Cartlidge
2020-07-30Fix inverted logic for LAN IP detectionBill Thornton
2020-07-22Review usage of string.Substring (part 1)Bond_009
Reduced allocations by replacing string.Substring with ReadOnlySpan<char>.Slice
2020-07-20Update Emby.Server.Implementations/Networking/NetworkManager.csBaronGreenback
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-07-20Two fixesBaronGreenback
2020-06-20Merge branch 'master' into SSDPCody Robibero
2020-06-19Re-ordered code for the matchBaronGreenback
2020-06-19MergedBaronGreenback
2020-06-16Add full stop at end of comments (SA1629)telans
2020-06-15fix SA1005telans
2020-06-05Use typed logger where possiblecrobibero
2020-06-01Update Emby.Server.Implementations/Networking/NetworkManager.csBaronGreenback
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-06-01Update Emby.Server.Implementations/Networking/NetworkManager.csBaronGreenback
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-06-01Update Emby.Server.Implementations/Networking/NetworkManager.csBaronGreenback
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-06-01Update Emby.Server.Implementations/Networking/NetworkManager.csBaronGreenback
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-05-29Enable TreatWarningsAsErrors for Jellyfin.Server.Implementations in Release modeBond_009
2020-05-17Update Emby.Server.Implementations/Networking/NetworkManager.csBaronGreenback
Co-authored-by: Patrick Barron <18354464+barronpm@users.noreply.github.com>
2020-04-29Changes styles as suggested by @barronpmBaronGreenback
Added addtional comments & source type as per intellisense suggestion change code as per sonacloud
2020-04-28Whilst fixing issues with SSDP on devices with multiple interfaces, i came ↵BaronGreenback
across a design issue in the current code - namely interfaces without a gateway were ignored. Fixing this required the removal of the code that attempted to detect virtual interfaces. Not wanting to remove functionality, but not able to keep the code in place, I implemented a work around solution (see 4 below). Whilst in the area, I also fixed a few minor bugs i encountered (1, 5, 6 below) and stopped SSDP messages from going out on non-LAN interfaces (3) All these changes are related. Changes 1 IsInPrivateAddressSpace - improved subnet code checking 2 interfaces with no gateway were being excluded from SSDP blasts 3 filtered SSDP blasts from not LAN addresses as defined on the network page. 4 removed #986 mod - as this was part of the issue of #2986. Interfaces can be excluded from the LAN by putting the LAN address in brackets. eg. [10.1.1.1] will exclude an interface with ip address 10.1.1.1 from SSDP 5 fixed a problem where an invalid LAN address causing the SSDP to crash 6 corrected local link filter (FilterIPAddress) to filter on 169.254. addresses
2020-04-28Revert "Whilst fixing issues with SSDP on devices with multiple interfaces, ↵BaronGreenback
i came across a design issue in the current code - namely interfaces without a gateway were ignored." This reverts commit 2aaecb8e148aef6cda67797fa4227a8ebcf7e5bb.
2020-04-28Whilst fixing issues with SSDP on devices with multiple interfaces, i came ↵BaronGreenback
across a design issue in the current code - namely interfaces without a gateway were ignored. Fixing this required the removal of the code that attempted to detect virtual interfaces. Not wanting to remove functionality, but not able to keep the code in place, I implemented a work around solution (see 4 below). Whilst in the area, I also fixed a few minor bugs i encountered (1, 5, 6 below) and stopped SSDP messages from going out on non-LAN interfaces (3) All these changes are related. Changes 1 IsInPrivateAddressSpace - improved subnet code checking 2 interfaces with no gateway were being excluded from SSDP blasts 3 filtered SSDP blasts from not LAN addresses as defined on the network page. 4 removed #986 mod - as this was part of the issue of #2986. Interfaces can be excluded from the LAN by putting the LAN address in brackets. eg. [10.1.1.1] will exclude an interface with ip address 10.1.1.1 from SSDP 5 fixed a problem where an invalid LAN address causing the SSDP to crash 6 corrected local link filter (FilterIPAddress) to filter on 169.254. addresses
2020-03-24Remove unused usingsBond_009
2019-11-28Minor improvements to network codeBond-009
2019-11-22Address commentsBond_009
2019-11-22Fix some warningsBond-009
2019-11-01Update deps and add MultiThreading analyzerBond_009
2019-08-09Fix more warningsBond_009
2019-08-07Merge pull request #1580 from Bond-009/linklocaldkanada
Ignore Ipv6 link-local addresses
2019-07-29Include library via NuGet instead of via sourceBond_009
2019-07-29Ignore Ipv6 link-local addressesBond_009
2019-07-25Remove IpAddressInfo and IpEndPointInfo classesBond_009
2019-03-07Remove EnvironmentInfoBond-009
This moved the last bit of usefulness of EnvironmentInfo into a static class.
2019-02-27Remove redundant parenthesisXu Fasheng
2019-02-22Send DLNA devices message to only the matched interfaceXu Fasheng
This will be the right way for multiple interfaces, or the client will receive all devices message with different IP addresses and could not detect which one could access. And provide one option DlnaOptions.SendOnlyMatchedHost to fallback to old behaviour if this commit missed something.
2019-02-22Add option to toggle if ignore virtual interfacesXu Fasheng
Some VPN like ZerotierOne owns IP address but no gateway, and there is no good idea in NetworkManager.GetIPsDefault() to filter such virtual interfaces, so just provide one option to let user decide it.
2019-02-09Fix namespacing so it lines up properly with file names and paths (#715)Erwin de Haan
* Fix stupid namespacing so it lines up properly with file names and paths.
2019-02-02Remove MoreLINQBond_009
2019-01-20Replaced injections of ILogger with ILoggerFactoryWilliam Taylor
This makes resolving dependencies from the container much easier as you cannot resolve with primitives parameters in a way that is any more readable. The aim of this commit is to change as little as possible with the end result, loggers that were newed up for the parent object were given the same name. Objects that used the base or app loggers, were given a new logger with an appropriate name. Also removed some unused dependencies.
2019-01-13ReSharper format: conform inline 'out' parameters.Erwin de Haan
2019-01-13ReSharper conform to 'var' settingsErwin de Haan
2019-01-13Find+Sed BOM removal *.cs: BDInfo-Emby.XmlTvErwin de Haan
2019-01-13EditorConfig reformat: Emby.IsoMounting, Emby.Server.ImplementationsErwin de Haan
2019-01-13Visual Studio Reformat: Emby.Server.Implementations Part Liv-PErwin de Haan
2019-01-11Merge branch 'dev' into code-cleanupErwin de Haan
2019-01-10Mayor code cleanupErwin de Haan
Add Argument*Exceptions now use proper nameof operators. Added exception messages to quite a few Argument*Exceptions. Fixed rethorwing to be proper syntax. Added a ton of null checkes. (This is only a start, there are about 500 places that need proper null handling) Added some TODOs to log certain exceptions. Fix sln again. Fixed all AssemblyInfo's and added proper copyright (where I could find them) We live in *current year*. Fixed the use of braces. Fixed a ton of properties, and made a fair amount of functions static that should be and can be static. Made more Methods that should be static static. You can now use static to find bad functions! Removed unused variable. And added one more proper XML comment.
2019-01-07remove trailing whitespacehawken
2019-01-07Remove tabs and trailing whitespacehawken
2019-01-02Remove obsolete functionsBond_009
2018-12-30Fix exception loggingBond_009
2018-12-30Use Microsoft.Extensions.Logging abstractionBond_009