Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

ports from ENV #1136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

thegobot
Copy link
Contributor

No description provided.

@thegobot thegobot requested a review from starwarfan as a code owner January 12, 2022 01:24
@@ -51,8 +51,8 @@ module.exports.load = () => {
config.webrtc = config.webrtc || {};
config.webrtc.stunserver = config.webrtc.stunserver || '';
config.webrtc.stunport = config.webrtc.stunport || 0;
config.webrtc.minport = config.webrtc.minport || 0;
config.webrtc.maxport = config.webrtc.maxport || 0;
config.webrtc.minport = config.webrtc.minport.indexOf('$') === 0 ? process.env[config.webrtc.minport.substr(1)] : (config.webrtc.minport || 0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(config.webrtc.minport.indexOf('$') === 0 ? process.env[config.webrtc.minport.substr(1)] : config.webrtc.minport) || 0

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants