浏览代码

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 年前
父节点
当前提交
7d67cb583e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      react/features/base/connection/actions.native.js

+ 2
- 2
react/features/base/connection/actions.native.js 查看文件

@@ -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.

正在加载...
取消
保存