diff --git a/UPnP.cpp b/UPnP.cpp index eb86d709..fea2ff9e 100644 --- a/UPnP.cpp +++ b/UPnP.cpp @@ -101,7 +101,7 @@ namespace transport void UPnP::Run () { - auto& a = context.GetRouterInfo().GetAddresses(); + const std::vector > a = context.GetRouterInfo().GetAddresses(); for (auto address : a) { if (!address->host.is_v6 ())