Skip to content
Snippets Groups Projects
Commit 6c0c915b authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] UPnP configuration was overriden on startup

parent 45856cc2
No related branches found
No related tags found
No related merge requests found
......@@ -807,7 +807,14 @@ function configure(server, conf) {
throw constants.ERRORS.CLI_CALLERR_CONFIG;
}
let wiz = wizard();
conf.upnp = !program.noupnp;
// UPnP override
if (program.noupnp === true) {
conf.upnp = false;
}
if (program.upnp === true) {
conf.upnp = true;
}
// Network autoconf
const autoconfNet = program.autoconf
|| !(conf.ipv4 || conf.ipv6)
|| !(conf.remoteipv4 || conf.remoteipv6 || conf.remotehost)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment