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

Function GetClearnetIPV6Address

libi2pd/util.cpp:774–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

772 }
773
774 boost::asio::ip::address_v6 GetClearnetIPV6Address ()
775 {
776 return GetLocalIPV6Address ([](const uint8_t addr[16])
777 {
778 return (addr[0] & 0xF0) == 0x20 || (addr[0] & 0xFC) == 0xFC; // 2000::/3 or FC00:/7
779 });
780 }
781
782 bool IsLocalAddress (const boost::asio::ip::address& addr)
783 {

Callers 2

InitTransportsFunction · 0.85
NewRouterInfoMethod · 0.85

Calls 1

GetLocalIPV6AddressFunction · 0.85

Tested by

no test coverage detected