Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

rn,connection: fix autogenerated BOSH address

Saúl Ibarra Corretgé7d67cb583e38
diff --git a/react/features/base/connection/actions.native.js b/react/features/base/connection/actions.native.js
index 2e474a8fc9..30fedc9942 100644
--- a/react/features/base/connection/actions.native.js
+++ b/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.