mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-12 20:37:12 +02:00
Finamp's connection test GETs /System/Endpoint and treats anything other than a 200 carrying an IsInNetwork key as "not a Jellyfin server", so the test failed against Navidrome and dual-connection setups could never switch to the local address. IsInNetwork mirrors Jellyfin's default LAN set (NetworkManager with no LocalNetworkSubnets configured): loopback, the RFC 1918 ranges, fc00::/7 and fe80::/10. Notably that set omits 169.254.0.0/16, so Go's IsLinkLocalUnicast is deliberately restricted to its IPv6 half. IsLocal mirrors HttpContext.IsLocal(): the caller shares the connection's local address, not merely "is loopback". It falls back to the loopback check when the local address is unavailable. |
||
|---|---|---|
| .. | ||
| annotations_test.go | ||
| audiomuse_test.go | ||
| auth_test.go | ||
| browsing_test.go | ||
| e2e_suite_test.go | ||
| images_test.go | ||
| lyrics_test.go | ||
| multiuser_test.go | ||
| playlists_test.go | ||
| routing_test.go | ||
| search_test.go | ||
| sessions_test.go | ||
| similar_test.go | ||
| smoke_test.go | ||
| streaming_test.go | ||
| system_test.go | ||