Check if a network address is allowed to access the HTTP server */
| 79 | |
| 80 | /** Check if a network address is allowed to access the HTTP server */ |
| 81 | static bool ClientAllowed(const CNetAddr& netaddr) |
| 82 | { |
| 83 | if (!netaddr.IsValid()) |
| 84 | return false; |
| 85 | for(const CSubNet& subnet : rpc_allow_subnets) |
| 86 | if (subnet.Match(netaddr)) |
| 87 | return true; |
| 88 | return false; |
| 89 | } |
| 90 | |
| 91 | /** Initialize ACL list for HTTP server */ |
| 92 | static bool InitHTTPAllowList() |
no test coverage detected