mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #221 from agrenott/fix_chromcecast
Fix local chromecast play behind reverse proxy
This commit is contained in:
commit
1d55d34bba
1 changed files with 7 additions and 2 deletions
|
@ -187,8 +187,13 @@ define(['events'], function (events) {
|
||||||
return apiClient.getEndpointInfo().then(function (endpoint) {
|
return apiClient.getEndpointInfo().then(function (endpoint) {
|
||||||
if (endpoint.IsInNetwork) {
|
if (endpoint.IsInNetwork) {
|
||||||
return apiClient.getPublicSystemInfo().then(function (info) {
|
return apiClient.getPublicSystemInfo().then(function (info) {
|
||||||
addToCache(serverAddress, info.LocalAddress);
|
var localAddress = info.LocalAddress
|
||||||
return info.LocalAddress;
|
if (!localAddress) {
|
||||||
|
console.log("No valid local address returned, defaulting to external one")
|
||||||
|
localAddress = serverAddress;
|
||||||
|
}
|
||||||
|
addToCache(serverAddress, localAddress);
|
||||||
|
return localAddress;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
addToCache(serverAddress, serverAddress);
|
addToCache(serverAddress, serverAddress);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue