Check if a network address is allowed to access the HTTP server */
| 158 | |
| 159 | /** Check if a network address is allowed to access the HTTP server */ |
| 160 | static bool ClientAllowed(const CNetAddr& netaddr) |
| 161 | { |
| 162 | if (!netaddr.IsValid()) |
| 163 | return false; |
| 164 | BOOST_FOREACH (const CSubNet& subnet, rpc_allow_subnets) |
| 165 | if (subnet.Match(netaddr)) |
| 166 | return true; |
| 167 | return false; |
| 168 | } |
| 169 | |
| 170 | /** Initialize ACL list for HTTP server */ |
| 171 | static bool InitHTTPAllowList() |
no test coverage detected