allow_rpc


Description:

protected virtual bool allow_rpc (HttpReply reply, Request request)

Registration / auth gate before OLLMrpc.Request.dispatch.

Return false when the request was already answered (rejected). Default allows all. Override in a subclass (e.g. ollmfilesd Https).

Parameters:

reply

HTTP reply for this POST (fingerprint / IP filled)

request

parsed request about to dispatch

Returns:

true to dispatch, false if already rejected