MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / ClientAllowed

Function ClientAllowed

src/httpserver.cpp:153–161  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

151
152/** Check if a network address is allowed to access the HTTP server */
153static 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 */
164static bool InitHTTPAllowList()

Callers 1

http_request_cbFunction · 0.85

Calls 2

IsValidMethod · 0.45
MatchMethod · 0.45

Tested by

no test coverage detected