mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:44:15 +00:00
Make a deep copy of our addresses for UPnP
Somehow "Expression: vector iterators incompatible" gets thrown especially on fresh start TODO: figure out details
This commit is contained in:
parent
abdef67ccc
commit
8791f382b3
4
UPnP.cpp
4
UPnP.cpp
@ -19,6 +19,7 @@
|
||||
#include "UPnP.h"
|
||||
#include "NetDb.h"
|
||||
#include "util.h"
|
||||
#include "RouterInfo.h"
|
||||
|
||||
#include <miniupnpc/miniupnpc.h>
|
||||
#include <miniupnpc/upnpcommands.h>
|
||||
@ -100,7 +101,8 @@ namespace transport
|
||||
|
||||
void UPnP::Run ()
|
||||
{
|
||||
for (auto& address : context.GetRouterInfo ().GetAddresses ())
|
||||
std::vector<data::RouterInfo::Address> a = context.GetRouterInfo().GetAddresses();
|
||||
for (auto& address : a)
|
||||
{
|
||||
if (!address.host.is_v6 ())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user