ipset

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: GPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager struct.

func NewManager

func NewManager(rules []*rule.Config) (*Manager, error)

NewManager returns a Manager

func (*Manager) AddDomainIP

func (m *Manager) AddDomainIP(domain string, ip netip.Addr) error

AddDomainIP implements the dns AnswerHandler function, used to update ipset according to domainSet rule.

Jump to

Keyboard shortcuts

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