From 7bdeaa961135bc9985d973a63afe65ea8c2fe679 Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 19 Feb 2022 08:15:49 -0500 Subject: [PATCH] don't pick own router for peer test --- libi2pd/Transports.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libi2pd/Transports.cpp b/libi2pd/Transports.cpp index 5f4b3425..85543407 100644 --- a/libi2pd/Transports.cpp +++ b/libi2pd/Transports.cpp @@ -1,5 +1,5 @@ /* -* Copyright (c) 2013-2021, The PurpleI2P Project +* Copyright (c) 2013-2022, The PurpleI2P Project * * This file is part of Purple i2pd project and licensed under BSD3 * @@ -588,6 +588,7 @@ namespace transport { LogPrint (eLogInfo, "Transports: Started peer test IPv4"); std::set excluded; + excluded.insert (i2p::context.GetIdentHash ()); // don't pick own router bool statusChanged = false; for (int i = 0; i < 5; i++) { @@ -614,6 +615,7 @@ namespace transport { LogPrint (eLogInfo, "Transports: Started peer test IPv6"); std::set excluded; + excluded.insert (i2p::context.GetIdentHash ()); // don't pick own router bool statusChanged = false; for (int i = 0; i < 5; i++) {