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