| 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 | { |
no outgoing calls
no test coverage detected