glider/ipset/ipset_other.go

24 lines
473 B
Go
Raw Normal View History

//go:build !linux
2018-08-13 00:42:59 +08:00
package ipset
2018-08-12 22:24:49 +08:00
import (
"errors"
"net/netip"
2018-08-12 22:24:49 +08:00
"github.com/nadoo/glider/rule"
)
// Manager struct
type Manager struct{}
// NewManager returns a Manager
func NewManager(rules []*rule.Config) (*Manager, error) {
return nil, errors.New("ipset not supported on this os")
}
// AddDomainIP implements the DNSAnswerHandler function
func (m *Manager) AddDomainIP(domain string, ip netip.Addr) error {
return errors.New("ipset not supported on this os")
}