Ver código fonte

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 anos atrás
pai
commit
7d67cb583e
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      react/features/base/connection/actions.native.js

+ 2
- 2
react/features/base/connection/actions.native.js Ver arquivo

299
             // Handle relative URLs, which won't work on mobile.
299
             // Handle relative URLs, which won't work on mobile.
300
             const {
300
             const {
301
                 protocol,
301
                 protocol,
302
-                hostname,
302
+                host,
303
                 contextRoot
303
                 contextRoot
304
             } = parseURIString(locationURL.href);
304
             } = parseURIString(locationURL.href);
305
 
305
 
306
             // eslint-disable-next-line max-len
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
         // Append room to the URL's search.
310
         // Append room to the URL's search.

Carregando…
Cancelar
Salvar