Skip to content
This repository has been 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.

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

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

Successfully merging this pull request may close these issues.

2 participants