rn,connection: fix autogenerated BOSH address

When the location URL contains a nonstandard port, it won't be included in
URL.hostname, but it will in URL.host.
pull/5044/head jitsi-meet_4214
Saúl Ibarra Corretgé 5 years ago committed by Saúl Ibarra Corretgé
parent 8e3c301d03
commit 7d67cb583e
  1. 4
      react/features/base/connection/actions.native.js

@ -299,12 +299,12 @@ function _constructOptions(state) {
// Handle relative URLs, which won't work on mobile.
const {
protocol,
hostname,
host,
contextRoot
} = parseURIString(locationURL.href);
// eslint-disable-next-line max-len
bosh = `${protocol}//${hostname}${contextRoot || '/'}${bosh.substr(1)}`;
bosh = `${protocol}//${host}${contextRoot || '/'}${bosh.substr(1)}`;
}
// Append room to the URL's search.

Loading…
Cancel
Save