Parse RTC_MIN_PORT and RTC_MAX_PORT
This commit is contained in:
parent
be5f97762a
commit
1a7371fe18
4
app.js
4
app.js
@ -67,8 +67,8 @@ const peers = io.of('/');
|
||||
const createWorker = async () => {
|
||||
try {
|
||||
worker = await mediasoup.createWorker({
|
||||
rtcMinPort: process.env.RTC_MIN_PORT,
|
||||
rtcMaxPort: process.env.RTC_MAX_PORT,
|
||||
rtcMinPort: parseInt(process.env.RTC_MIN_PORT),
|
||||
rtcMaxPort: parseInt(process.env.RTC_MAX_PORT),
|
||||
})
|
||||
console.log(`[createWorker] worker pid ${worker.pid}`);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user