Pārlūkot izejas kodu

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.
master
Saúl Ibarra Corretgé 5 gadus atpakaļ
vecāks
revīzija
7d67cb583e
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      react/features/base/connection/actions.native.js

+ 2
- 2
react/features/base/connection/actions.native.js Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt