Patrick Barron
ca71ec6a09
Fix nullability for INetworkManager.GetBindAddress
12 months ago
Bond_009
3c3f0a765e
Use new IPNetwork.TryParse function
1 year ago
Bond_009
635d67d458
Revert "Use System.Net.IPNetwork"
...
This reverts commit 117d05d288da1d412159a29c0cb8d5c8259e48ae.
1 year ago
Bond_009
b62b0ec2b5
Fix warnings
1 year ago
Bond_009
99e0d46ad9
Use System.Net.IPNetwork
1 year ago
Patrick Barron
e463dbda47
Move network configuration to MediaBrowser.Common
1 year ago
Patrick Barron
9595636d61
Move network utilities to MediaBrowser.Common
1 year ago
Patrick Barron
223b156270
Move network constants to MediaBrowser.Common
1 year ago
Shadowghost
e56275fb46
Extract networking constants
1 year ago
Shadowghost
3f65851520
Apply review suggestions
1 year ago
Shadowghost
9b0e44019a
Apply review suggestions
1 year ago
Shadowghost
a381cd3c76
Apply review suggestions
1 year ago
Shadowghost
c042f20224
Merge branch 'master' into network-rewrite
2 years ago
Cody Robibero
e1a30a4aef
Merge pull request #8598 from Neuheit/ipv4fallback
2 years ago
Shadowghost
a5bfeb28aa
Apply review suggestions
2 years ago
Shadowghost
a5f16136eb
Apply review suggestions
2 years ago
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)
2 years ago
Shadowghost
20fd05b050
Consistently write IP in upercase
2 years ago
Shadowghost
42498194d9
Replace ISocket and UdpSocket, fix DLNA and SSDP binding and discovery
2 years ago
Shadowghost
4eba16c672
Apply review suggestions
2 years ago
Shadowghost
1cc7572445
Apply review suggestions
2 years ago
Bond-009
36b7157589
Fix #9300 ( #9312 )
2 years ago
Shadowghost
414eb45899
Merge branch 'master' into network-rewrite
2 years ago
Patrick Barron
5d1b5d257f
Remove CustomHeaderNames
2 years ago
Shadowghost
3f6354cdb8
Fix .NET 7 compatibility
2 years ago
Bond_009
52194f56b5
Replace != null with is not null
2 years ago
Bond_009
c7d50d640e
Replace == null with is null
2 years ago
Neuheit
c9a387943f
Add IPv4 fallback from IPv6 failure.
...
Co-authored-by: BaronGreenback <jimcartlidge@yahoo.co.uk>
2 years ago
Shadowghost
f6d6f0367b
Properly handle IPs with subnetmasks
2 years ago
Shadowghost
26d79a5ce3
Properly name some bind address functions, cleanup logging
2 years ago
Shadowghost
87d0158a4a
Fix autodiscovery
2 years ago
Shadowghost
4aec41752f
Apply review suggestions
2 years ago
Shadowghost
7b90fcd053
Merge branch 'master' into network-rewrite
2 years ago
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);
```
2 years ago
Shadowghost
4fc52a840c
Merge branch 'master' into network-rewrite
2 years ago
Bond-009
33611614ed
Merge pull request #7433 from Bond-009/ssdphttpclient
2 years ago
Shadowghost
59a86568d9
Cleanup and fixes
2 years ago
Shadowghost
2d3a16ad0f
Simplify code
2 years ago
Shadowghost
2281b8c997
Move away from using Collection, simplify code, add proper ordering
2 years ago
Shadowghost
a492082f4e
Apply review suggestions and fix build
2 years ago
Shadowghost
64ffd5fd95
Move subnet parser to NetworkExtensions
2 years ago
Shadowghost
997aa3f1e7
Fix build
2 years ago
Shadowghost
066db8ac7f
Migrate NetworkManager and Tests to native .NET IP objects
2 years ago
Cody Robibero
94a69c8a8b
Merge pull request #7549 from cvium/fix_isinlocalnetwork
...
(cherry picked from commit bdb85aeecf
)
Signed-off-by: crobibero <cody@robibe.ro>
3 years ago
Bond_009
cafeedcadf
Rework SsdpHttpClient
3 years ago
Cody Robibero
7bfc6b5679
Remove more warnings
3 years ago
Bond_009
4c1286fd24
Address comment
3 years ago
Bond_009
60053c7f3d
Fix log messages
3 years ago
Bond_009
442dc10aac
ApiServiceCollectionExtensions.AddProxyAddresses: Add more tests
3 years ago
Bond_009
915141f196
Fix some warnings
3 years ago