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