MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / DetectExternalIP

Method DetectExternalIP

libi2pd/Transports.cpp:793–805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

791 }
792
793 void Transports::DetectExternalIP ()
794 {
795 if (RoutesRestricted())
796 {
797 LogPrint(eLogInfo, "Transports: Restricted routes enabled, not detecting IP");
798 i2p::context.SetStatus (eRouterStatusOK);
799 return;
800 }
801 if (m_SSU2Server)
802 PeerTest ();
803 else
804 LogPrint (eLogWarning, "Transports: Can't detect external IP. SSU or SSU2 is not available");
805 }
806
807 void Transports::PeerTest (bool ipv4, bool ipv6)
808 {

Callers

nothing calls this directly

Calls 2

LogPrintFunction · 0.85
SetStatusMethod · 0.80

Tested by

no test coverage detected