From 1d9dbe579f6901b9502b20b4a0333e7aa27f30bb Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Wed, 21 Feb 2024 16:14:46 +0100 Subject: [PATCH] [mirotalksfu] - update config --- app/src/Server.js | 4 +++- app/src/config.template.js | 9 ++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/Server.js b/app/src/Server.js index 27467ed9..c354cae3 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -217,7 +217,9 @@ if (!announcedAddress) { (resp) => { resp.on('data', (ip) => { announcedAddress = ip.toString(); - config.mediasoup.webRtcTransport.listenInfos[0].announcedAddress = announcedAddress; + config.mediasoup.webRtcTransport.listenInfos.forEach((info) => { + info.announcedAddress = announcedAddress; + }); startServer(); }); }, diff --git a/app/src/config.template.js b/app/src/config.template.js index 5cbba6b4..3bf44ce2 100644 --- a/app/src/config.template.js +++ b/app/src/config.template.js @@ -354,11 +354,10 @@ module.exports = { // WebRtcTransport settings webRtcTransport: { listenInfos: [ - { - protocol: 'udp', - ip: '0.0.0.0', - announcedAddress: getLocalIp(), // replace by 'public static IPV4 address' https://api.ipify.org (type string --> 'xx.xxx.xxx.xx' not xx.xxx.xxx.xx) - }, //announcedAddress: '' will be auto-detected on server start, for docker localPC set '127.0.0.1' otherwise the 'public static IPV4 address' + { protocol: 'tcp', ip: '0.0.0.0', announcedAddress: getLocalIp() }, + { protocol: 'udp', ip: '0.0.0.0', announcedAddress: getLocalIp() }, + //announcedAddress: replace by 'public static IPV4 address' https://api.ipify.org (type string --> 'xx.xxx.xxx.xx' not xx.xxx.xxx.xx) + //announcedAddress: '' will be auto-detected on server start, for docker localPC set '127.0.0.1' otherwise the 'public static IPV4 address' ], initialAvailableOutgoingBitrate: 1000000, minimumAvailableOutgoingBitrate: 600000,