MCPcopy Create free account
hub / github.com/LUX-Core/lux / ClientAllowed

Function ClientAllowed

src/httpserver.cpp:156–164  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

154
155/** Check if a network address is allowed to access the HTTP server */
156static 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 */
167static bool InitHTTPAllowList()

Callers 1

http_request_cbFunction · 0.85

Calls 2

IsValidMethod · 0.45
MatchMethod · 0.45

Tested by

no test coverage detected