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
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,8 @@ public:
void releaseMapping(const Mapping& map);
static uint16_t generateRandomPort(PortType);
std::shared_ptr<UPnPContext> upnpContext() const { return upnpContext_; }
private:
// Adds a mapping locally to the list.
void addLocalMap(const Mapping& map);
......
......@@ -1473,7 +1473,7 @@ ConnectionManager::Impl::getIceOptions() const noexcept
IceTransportOptions opts;
opts.factory = config_->factory;
opts.upnpEnable = getUPnPActive();
opts.upnpContext = config_->upnpCtrl;
opts.upnpContext = config_->upnpCtrl->upnpContext();
if (config_->stunEnabled)
opts.stunServers.emplace_back(StunServerInfo().setUri(config_->stunServer));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment