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