dnsbl

package
v0.0.0-...-25bf8ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSBL

type DNSBL struct {
	// contains filtered or unexported fields
}

The DNSBL external source looks up IP addresses in a DNS-based blacklist, and expects the result to match a specific pattern.

func New

func New(domain, match string) (*DNSBL, error)

func (*DNSBL) LookupIP

func (d *DNSBL) LookupIP(ip string) (tengo.Object, error)

LookupIP implements the ExternalSource interface. We'd like to return a boolean but can't figure out how to build one with Tengo, so we return a 0/1 int result instead.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL