Commit graph

86 commits

Author SHA1 Message Date
Bond_009 635d67d458 Revert "Use System.Net.IPNetwork"
This reverts commit 117d05d288da1d412159a29c0cb8d5c8259e48ae.
2023-11-14 21:16:33 +01:00
Bond_009 b62b0ec2b5 Fix warnings 2023-11-14 21:14:21 +01:00
Bond_009 99e0d46ad9 Use System.Net.IPNetwork 2023-11-14 21:13:51 +01:00
Patrick Barron e463dbda47 Move network configuration to MediaBrowser.Common 2023-11-12 10:24:35 -05:00
Patrick Barron 9595636d61 Move network utilities to MediaBrowser.Common 2023-11-12 10:24:34 -05:00
Patrick Barron 223b156270 Move network constants to MediaBrowser.Common 2023-11-12 10:24:34 -05:00
Tim Eisele dc27d8f9cd
Refactor URI overrides (#10051) 2023-10-11 00:02:37 +02:00
Shadowghost e56275fb46 Extract networking constants 2023-07-03 22:04:59 +02:00
Shadowghost 3f65851520 Apply review suggestions 2023-07-03 10:03:39 +02:00
Shadowghost 9b0e44019a Apply review suggestions 2023-07-02 12:40:49 +02:00
Shadowghost c042f20224 Merge branch 'master' into network-rewrite 2023-05-11 15:41:39 +02:00
Cody Robibero e1a30a4aef
Merge pull request #8598 from Neuheit/ipv4fallback 2023-05-11 07:12:34 -06:00
Stepan Goremykin 910617bbc3 Remove redundant 'else' keywords 2023-04-06 19:38:34 +02:00
Stepan Goremykin e74630a613 Use MinBy and MaxBy 2023-04-01 23:00:51 +02:00
Bond_009 d280dc6554 Reduce log spam
Fixes #7801
2023-03-01 16:43:55 +01:00
Shadowghost a5bfeb28aa Apply review suggestions 2023-02-20 21:51:15 +01:00
Bond_009 24a7e210c3 Optimize tryparse
* Don't check for null before
* Don't try different formats when not needed (NumberFormat.Integer is the fast path)
2023-02-19 16:52:29 +01:00
Shadowghost 20fd05b050 Consistently write IP in upercase 2023-02-17 19:27:36 +01:00
Shadowghost 42498194d9 Replace ISocket and UdpSocket, fix DLNA and SSDP binding and discovery 2023-02-17 17:39:11 +01:00
Shadowghost 4eba16c672 Apply review suggestions 2023-02-15 22:34:44 +01:00
Shadowghost 1cc7572445 Apply review suggestions 2023-02-15 11:31:47 +01:00
Shadowghost 343a94f185 Fix CA1851 2023-01-19 10:19:53 +01:00
Patrick Barron dfc5a4373f Change log level for bind address usage to debug
Fixes #9024
2023-01-10 19:58:54 -05:00
Bond-009 3462676a8f
Fix debug builds (#8909) 2022-12-14 22:03:03 +01:00
Bond_009 52194f56b5 Replace != null with is not null 2022-12-05 15:01:13 +01:00
Bond_009 c7d50d640e Replace == null with is null 2022-12-05 15:00:20 +01:00
Shadowghost 95740ef9a2 Fix build 2022-12-03 12:44:59 +01:00
Shadowghost 36994c17bf Apply review suggestions 2022-11-17 11:34:48 +01:00
Neuheit c9a387943f Add IPv4 fallback from IPv6 failure.
Co-authored-by: BaronGreenback <jimcartlidge@yahoo.co.uk>
2022-10-20 16:17:56 -04:00
Shadowghost f6d6f0367b Properly handle IPs with subnetmasks 2022-10-17 15:51:09 +02:00
Shadowghost 26d79a5ce3 Properly name some bind address functions, cleanup logging 2022-10-16 10:22:11 +02:00
Shadowghost 87d0158a4a Fix autodiscovery 2022-10-15 17:27:37 +02:00
Shadowghost 4aec41752f Apply review suggestions 2022-10-14 10:25:57 +02:00
Shadowghost 7b90fcd053 Merge branch 'master' into network-rewrite 2022-10-07 09:16:02 +02:00
Bond_009 a9a5fcde81 Use ArgumentNullException.ThrowIfNull helper method
Did a simple search/replace on the whole repo (except the RSSDP project)
This reduces LOC and should improve performance (methods containing a throw statement don't get inlined)

```
if \((\w+) == null\)
\s+\{
\s+throw new ArgumentNullException\((.*)\);
\s+\}
```

```
ArgumentNullException.ThrowIfNull($1);
```
2022-10-06 20:21:23 +02:00
Shadowghost bd9a940fed Declare VirtualInterfaceNames as string array for consistency 2022-10-01 21:42:31 +02:00
luz paz 9ec2870b10 Fix various typos
Found via `codespell -q 3 -S ./Emby.Server.Implementations/Localization -L allready,doesnt,inh,receivedfrom,whoknows`
2022-08-15 06:48:34 -04:00
Shadowghost 59a86568d9 Cleanup and fixes 2022-07-21 22:09:54 +02:00
Shadowghost cea8e8bbf6 Fix logging output 2022-07-21 19:17:44 +02:00
Shadowghost f6e41269d9 Enforce interface bindings on SSDP, add Loopback to LAN if no LAN defined 2022-07-21 09:26:18 +02:00
Shadowghost 358642c2d9 Fix build, fix loopback binding, exclude unsupported IPs from bind 2022-07-20 21:51:12 +02:00
Shadowghost 2d3a16ad0f Simplify code 2022-07-20 21:19:35 +02:00
Shadowghost 2281b8c997 Move away from using Collection, simplify code, add proper ordering 2022-07-20 14:29:30 +02:00
Shadowghost 64ffd5fd95 Move subnet parser to NetworkExtensions 2022-07-20 09:45:57 +02:00
Shadowghost 997aa3f1e7 Fix build 2022-07-19 21:53:10 +02:00
Shadowghost 066db8ac7f Migrate NetworkManager and Tests to native .NET IP objects 2022-07-19 21:28:04 +02:00
Cody Robibero 94a69c8a8b Merge pull request #7549 from cvium/fix_isinlocalnetwork
(cherry picked from commit bdb85aeecf)
Signed-off-by: crobibero <cody@robibe.ro>
2022-04-07 12:54:58 -04:00
Bond_009 3cb49d6df0 Fix option to disable server discovery 2022-02-14 14:39:33 +01:00
cvium 0485ff1899 Create a store key constant for network 2021-11-24 13:42:14 +01:00
Claus Vium 4f51a22081
Update Jellyfin.Networking/Manager/NetworkManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-09-07 19:52:17 +02:00