Check if a network address is allowed to access the HTTP server */
| 186 | |
| 187 | /** Check if a network address is allowed to access the HTTP server */ |
| 188 | static bool ClientAllowed(const CNetAddr& netaddr) |
| 189 | { |
| 190 | if (!netaddr.IsValid()) |
| 191 | return false; |
| 192 | for(const CSubNet& subnet : rpc_allow_subnets) |
| 193 | if (subnet.Match(netaddr)) |
| 194 | return true; |
| 195 | return false; |
| 196 | } |
| 197 | |
| 198 | /** Initialize ACL list for HTTP server */ |
| 199 | static bool InitHTTPAllowList() |
no test coverage detected