diff --git a/daemon/UPnP.cpp b/daemon/UPnP.cpp index 9230aeb2..b7182055 100644 --- a/daemon/UPnP.cpp +++ b/daemon/UPnP.cpp @@ -211,7 +211,7 @@ namespace transport void UPnP::CloseMapping () { - const a = context.GetRouterInfo().GetAddresses(); + auto a = context.GetRouterInfo().GetAddresses(); if (!a) return; for (const auto& address : *a) {