Table of Contents

Method AdmitsSource

Namespace
MailFathom.Application.Access.Credentials
Assembly
MailFathom.Application.dll

AdmitsSource(IPAddress?)

Gets whether a request from the given address may present the credential.

public bool AdmitsSource(IPAddress? source)

Parameters

source IPAddress

The client address the forwarded-headers policy resolved, or null where none is known.

Returns

bool

true when the credential names no network, or one of its networks holds the address.

Remarks

An IPv4 address arriving mapped into IPv6 is compared in its IPv4 form, which is how a dual-stack listener reports one and how a network is stored.