MCPcopy Create free account
hub / github.com/Raptor3um/raptoreum / ClientAllowed

Function ClientAllowed

src/httpserver.cpp:162–169  ·  view source on GitHub ↗

Check if a network address is allowed to access the HTTP server */

Source from the content-addressed store, hash-verified

160
161/** Check if a network address is allowed to access the HTTP server */
162static bool ClientAllowed(const CNetAddr &netaddr) {
163 if (!netaddr.IsValid())
164 return false;
165 for (const CSubNet &subnet: rpc_allow_subnets)
166 if (subnet.Match(netaddr))
167 return true;
168 return false;
169}
170
171/** Initialize ACL list for HTTP server */
172static bool InitHTTPAllowList() {

Callers 1

http_request_cbFunction · 0.85

Calls 2

IsValidMethod · 0.45
MatchMethod · 0.45

Tested by

no test coverage detected