mirror of
https://github.com/tl-open-source/tl-rtc-file.git
synced 2025-09-26 19:41:16 +08:00
fix: host env err
This commit is contained in:
@@ -28,11 +28,11 @@ function initData(req, res) {
|
||||
ip = "127.0.0.1"
|
||||
}
|
||||
|
||||
let wsHost = conf.socket.host || ip;
|
||||
let wsHost = conf.socket.host || ip + ":" + conf.socket.port;
|
||||
|
||||
let data = {
|
||||
version : conf.version,
|
||||
wsHost: "ws://" + wsHost + ":" + conf.socket.port,
|
||||
wsHost: "ws://" + wsHost,
|
||||
rtcConfig: { iceServers },
|
||||
options: webrtcConf.options,
|
||||
logo : utils.genClientLogo(),
|
||||
@@ -45,7 +45,7 @@ function initData(req, res) {
|
||||
|
||||
let data = {
|
||||
version : conf.version,
|
||||
wsHost: "wss://" + wsHost + ":" + conf.socket.port,
|
||||
wsHost: "wss://" + wsHost,
|
||||
rtcConfig: { iceServers },
|
||||
options: webrtcConf.options,
|
||||
logo : utils.genClientLogo(),
|
||||
|
@@ -4,7 +4,7 @@ tl_rtc_file_api_port=9092
|
||||
## websocket服务端口
|
||||
tl_rtc_file_socket_port=8444
|
||||
## websocket服务地址
|
||||
tl_rtc_file_socket_host=127.0.0.1
|
||||
tl_rtc_file_socket_host=127.0.0.1:8444
|
||||
|
||||
|
||||
#-----------------以下为webrtc相关配置-----------------#
|
||||
|
Reference in New Issue
Block a user