is_allowed


Description:

public abstract bool is_allowed (Device? device, Service? service, string path, string address, string? agent)

Check whether an IP address is allowed to access this resource.

Parameters:

this

an instance of Acl

device

The Device associated with path or null if unknown.

service

The Service associated with path or null if unknown.

path

The path being served.

address

IP address of the peer.

agent

The User-Agent header of the peer or null if not unknown. returns true if the peer is allowed, false otherwise