don't run peer test for SSU2 through proxy
This commit is contained in:
@@ -58,6 +58,7 @@ namespace transport
|
|||||||
boost::asio::io_service& GetService () { return GetIOService (); };
|
boost::asio::io_service& GetService () { return GetIOService (); };
|
||||||
void SetLocalAddress (const boost::asio::ip::address& localAddress);
|
void SetLocalAddress (const boost::asio::ip::address& localAddress);
|
||||||
bool SetProxy (const std::string& address, uint16_t port);
|
bool SetProxy (const std::string& address, uint16_t port);
|
||||||
|
bool UsesProxy () const { return m_IsThroughProxy; };
|
||||||
bool IsSupported (const boost::asio::ip::address& addr) const;
|
bool IsSupported (const boost::asio::ip::address& addr) const;
|
||||||
uint16_t GetPort (bool v4) const;
|
uint16_t GetPort (bool v4) const;
|
||||||
bool IsSyncClockFromPeers () const { return m_IsSyncClockFromPeers; };
|
bool IsSyncClockFromPeers () const { return m_IsSyncClockFromPeers; };
|
||||||
|
@@ -665,7 +665,7 @@ namespace transport
|
|||||||
LogPrint (eLogWarning, "Transports: Can't find routers for peer test IPv4");
|
LogPrint (eLogWarning, "Transports: Can't find routers for peer test IPv4");
|
||||||
}
|
}
|
||||||
// SSU2
|
// SSU2
|
||||||
if (m_SSU2Server)
|
if (m_SSU2Server && !m_SSU2Server->UsesProxy ())
|
||||||
{
|
{
|
||||||
excluded.clear ();
|
excluded.clear ();
|
||||||
excluded.insert (i2p::context.GetIdentHash ());
|
excluded.insert (i2p::context.GetIdentHash ());
|
||||||
@@ -714,7 +714,7 @@ namespace transport
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SSU2
|
// SSU2
|
||||||
if (m_SSU2Server)
|
if (m_SSU2Server && !m_SSU2Server->UsesProxy ())
|
||||||
{
|
{
|
||||||
excluded.clear ();
|
excluded.clear ();
|
||||||
excluded.insert (i2p::context.GetIdentHash ());
|
excluded.insert (i2p::context.GetIdentHash ());
|
||||||
|
Reference in New Issue
Block a user