Commit Graph

20 Commits

Author SHA1 Message Date
Bond-009
ceb850c770 Update projects to .NET 9 (#13023) 2024-11-16 10:11:01 -07:00
Alexander Gramiak
76ac1e6143 NetworkManager: Use MemberNotNull attribute
Added in .NET 5, this attribute allows for the compiler to recognize
that InitializeLan (and by extension, UpdateSettings) will initialize
the specified fields.
2024-10-05 15:28:30 -06:00
gnattu
987dbe98c8 cli: add option to disable network change detection (#11253) 2024-09-09 13:17:10 -06:00
Bond_009
97a02f5803 Remove BOM from UTF-8 files
I think some people need to change their IDE configuration ;)
2024-08-30 15:29:48 +02:00
Shadowghost
9c96ce5f6e Backport pull request #12094 from jellyfin/release-10.9.z
Map IPv6 mapped IPv4 addresses back to IPv4 before running checks

Original-merge: f097aad01e

Merged-by: Bond-009 <bond.009@outlook.com>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
2024-06-23 11:40:54 -04:00
gnattu
e7145acd56 Backport pull request #11766 from jellyfin/release-10.9.z
Filter invalid IPs on external interface matching

Original-merge: 2eece01acc

Merged-by: crobibero <cody@robibe.ro>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
2024-05-25 11:46:13 -04:00
Shadowghost
a7b2b92f2b Backport pull request #11671 from jellyfin/release-10.9.z
Fix network binding

Original-merge: 430d450828

Merged-by: nielsvanvelzen <nielsvanvelzen@users.noreply.github.com>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
2024-05-17 13:51:48 -04:00
gnattu
69d4886697 Backport pull request #11587 from jellyfin/release-10.9.z
Fix network config

Original-merge: f396a95f05

Merged-by: crobibero <cody@robibe.ro>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
2024-05-13 12:47:38 -04:00
gnattu
76757719f7 Cleanup more unused code
Signed-off-by: gnattu <gnattuoc@me.com>
2024-05-07 07:39:47 +08:00
gnattu
07faa8a3fb Cleanup unused code
Signed-off-by: gnattu <gnattuoc@me.com>
2024-05-07 07:36:41 +08:00
gnattu
d919284b59 Let AutoDiscoveryHost bind to all addresses
Signed-off-by: gnattu <gnattuoc@me.com>
2024-05-07 06:53:02 +08:00
gnattu
80fac82c2c fix: bind auto-discovery to multicast ip on macOS (#11368) 2024-04-17 10:44:20 -06:00
Cody Robibero
ed82d79647 Catch exceptions in auto discovery (#11252) 2024-03-30 17:28:03 -06:00
Patrick Barron
99ea6059c7 Use IHostedService for UPnP port forwarding 2024-02-07 10:52:36 -05:00
Patrick Barron
43b32b0d94 Auto Discovery Cleanup (#10793)
* Call GetSmartApiUrl directly in UdpServer.RespondToV2Message

GetSmartApiUrl already returns PublishedServerUrl if set.

* Rewrite auto discovery using UdpClient and BackgroundService

* Respect network address settings in AutoDiscoveryHost

* Always listen on broadcast address in Linux for auto-discovery

* Await udp server tasks in AutoDiscoveryHost

* Only bind to broadcast addresses for IPv4

* Only bind to broadcast if IPv4 is enabled
2024-01-06 13:34:09 -07:00
Patrick Barron
eea676429b Use file-scoped namespaces in Jellyfin.Networking 2023-11-30 12:26:37 -05:00
Patrick Barron
1b821efcf2 Move ExternalPortForwarding to Jellyfin.Networking 2023-11-30 12:23:34 -05:00
Patrick Barron
fc1e27b754 Move SocketFactory to Jellyfin.Networking 2023-11-30 12:03:58 -05:00
Patrick Barron
f1ca1dd7cc Move UdpServerEntryPoint to Jellyfin.Networking 2023-11-30 11:57:09 -05:00
Patrick Barron
9597648ce3 Move Jellyfin.Networking to src 2023-11-30 11:57:07 -05:00