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

upnp Controller: add upnpContext()

Change-Id: I8abe918b0e7405cff7df59c7d7f29479b270218a
parent 753c8197
Branches
No related tags found
No related merge requests found
...@@ -54,6 +54,8 @@ public: ...@@ -54,6 +54,8 @@ public:
void releaseMapping(const Mapping& map); void releaseMapping(const Mapping& map);
static uint16_t generateRandomPort(PortType); static uint16_t generateRandomPort(PortType);
std::shared_ptr<UPnPContext> upnpContext() const { return upnpContext_; }
private: private:
// Adds a mapping locally to the list. // Adds a mapping locally to the list.
void addLocalMap(const Mapping& map); void addLocalMap(const Mapping& map);
......
...@@ -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; opts.upnpContext = config_->upnpCtrl->upnpContext();
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