Skip to content
Snippets Groups Projects
Commit 7b869d9c authored by Adrien Béraud's avatar Adrien Béraud
Browse files

ConnectionManager: support disabled upnp

Change-Id: I2948cb86e4655471d6809ddb0971de60d3950948
parent 9a67681b
Branches
Tags
No related merge requests found
...@@ -1473,7 +1473,7 @@ ConnectionManager::Impl::getIceOptions() const noexcept ...@@ -1473,7 +1473,7 @@ ConnectionManager::Impl::getIceOptions() const noexcept
IceTransportOptions opts; IceTransportOptions opts;
opts.factory = config_->factory; opts.factory = config_->factory;
opts.upnpEnable = getUPnPActive(); opts.upnpEnable = getUPnPActive();
opts.upnpContext = config_->upnpCtrl->upnpContext(); opts.upnpContext = config_->upnpCtrl ? config_->upnpCtrl->upnpContext() : nullptr;
if (config_->stunEnabled) if (config_->stunEnabled)
opts.stunServers.emplace_back(StunServerInfo().setUri(config_->stunServer)); opts.stunServers.emplace_back(StunServerInfo().setUri(config_->stunServer));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment