block

package
v0.0.0-...-370076f Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

README

block plugin can block the dst address on the server side, such as domain or ip. If it is the domain dst, and the IP will be resolved in the domain and check again.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	DomainList string
	CIDR4List  string
	CIDR6List  string
	Domain     map[string]byte
	CIDR4      []*net.IPNet
	CIDR6      []*net.IPNet
	GeoIP      []string
	Cache      *cache.Cache
	Lock       *sync.RWMutex
	Duration   int
	Done       chan byte
}

func NewBlock

func NewBlock(domainList, cidr4List, cidr6List string, geoIP []string, update int) (*Block, error)

func (*Block) Stop

func (bk *Block) Stop()

func (*Block) TouchBrook

func (bk *Block) TouchBrook()

func (*Block) Update

func (bk *Block) Update()

Jump to

Keyboard shortcuts

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