don't run peer test for SSU2 through proxy

This commit is contained in:
orignal 2022-10-26 21:14:28 -04:00
parent 0e477bf938
commit 016222463d
2 changed files with 3 additions and 2 deletions

View File

@ -58,6 +58,7 @@ namespace transport
boost::asio::io_service& GetService () { return GetIOService (); };
void SetLocalAddress (const boost::asio::ip::address& localAddress);
bool SetProxy (const std::string& address, uint16_t port);
bool UsesProxy () const { return m_IsThroughProxy; };
bool IsSupported (const boost::asio::ip::address& addr) const;
uint16_t GetPort (bool v4) const;
bool IsSyncClockFromPeers () const { return m_IsSyncClockFromPeers; };

View File

@ -665,7 +665,7 @@ namespace transport
LogPrint (eLogWarning, "Transports: Can't find routers for peer test IPv4");
}
// SSU2
if (m_SSU2Server)
if (m_SSU2Server && !m_SSU2Server->UsesProxy ())
{
excluded.clear ();
excluded.insert (i2p::context.GetIdentHash ());
@ -714,7 +714,7 @@ namespace transport
}
// SSU2
if (m_SSU2Server)
if (m_SSU2Server && !m_SSU2Server->UsesProxy ())
{
excluded.clear ();
excluded.insert (i2p::context.GetIdentHash ());