Check if a network address is allowed to access the HTTP server */
| 167 | |
| 168 | /** Check if a network address is allowed to access the HTTP server */ |
| 169 | static bool ClientAllowed(const CNetAddr &netaddr) |
| 170 | { |
| 171 | if (!netaddr.IsValid()) |
| 172 | return false; |
| 173 | for (const CSubNet &subnet : rpc_allow_subnets) |
| 174 | if (subnet.Match(netaddr)) |
| 175 | return true; |
| 176 | return false; |
| 177 | } |
| 178 | |
| 179 | /** Initialize ACL list for HTTP server */ |
| 180 | static bool InitHTTPAllowList() |
no test coverage detected