AllRule

open class AllRule: Rule

The rule matches all DNS and connect sessions.

  • Undocumented

    Declaration

    Swift

    open class AllRule: Rule
  • Create a new AllRule instance.

    Declaration

    Swift

    public init(adapterFactory: AdapterFactory)

    Parameters

    adapterFactory

    The factory which builds a corresponding adapter when needed.

  • Match DNS session to this rule.

    Declaration

    Swift

    override open func matchDNS(_ session: DNSSession, type: DNSSessionMatchType) -> DNSSessionMatchResult

    Parameters

    session

    The DNS session to match.

    type

    What kind of information is available.

    Return Value

    The result of match.

  • Match connect session to this rule.

    Declaration

    Swift

    override open func match(_ session: ConnectSession) -> AdapterFactory?

    Parameters

    session

    connect session to match.

    Return Value

    The configured adapter.