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

Method IsSupported

libi2pd/SSU2.cpp:197–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 }
196
197 bool SSU2Server::IsSupported (const boost::asio::ip::address& addr) const
198 {
199 if (m_IsThroughProxy)
200 return m_SocketV4.is_open ();
201 if (addr.is_v4 ())
202 {
203 if (m_SocketV4.is_open ())
204 return true;
205 }
206 else if (addr.is_v6 ())
207 {
208 if (m_SocketV6.is_open ())
209 return true;
210 }
211 return false;
212 }
213
214 uint16_t SSU2Server::GetPort (bool v4) const
215 {

Callers 2

HandleRelayIntroMethod · 0.80
HandlePeerTestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected