2021-08-12 19:11:06 +08:00
|
|
|
//go:build !linux
|
2017-08-28 19:23:32 +08:00
|
|
|
|
2018-08-13 00:42:59 +08:00
|
|
|
package ipset
|
2017-08-28 19:23:32 +08:00
|
|
|
|
2018-08-12 22:24:49 +08:00
|
|
|
import (
|
|
|
|
"errors"
|
2022-02-03 00:04:17 +08:00
|
|
|
"net/netip"
|
2018-08-12 22:24:49 +08:00
|
|
|
|
|
|
|
"github.com/nadoo/glider/rule"
|
|
|
|
)
|
2017-08-28 19:23:32 +08:00
|
|
|
|
2018-08-14 19:33:18 +08:00
|
|
|
// Manager struct
|
|
|
|
type Manager struct{}
|
2017-08-28 19:23:32 +08:00
|
|
|
|
2018-08-14 19:33:18 +08:00
|
|
|
// NewManager returns a Manager
|
2018-11-27 23:25:20 +08:00
|
|
|
func NewManager(rules []*rule.Config) (*Manager, error) {
|
2017-08-28 19:23:32 +08:00
|
|
|
return nil, errors.New("ipset not supported on this os")
|
|
|
|
}
|
|
|
|
|
2017-09-10 20:33:35 +08:00
|
|
|
// AddDomainIP implements the DNSAnswerHandler function
|
2022-02-03 00:04:17 +08:00
|
|
|
func (m *Manager) AddDomainIP(domain string, ip netip.Addr) error {
|
2017-08-28 19:23:32 +08:00
|
|
|
return errors.New("ipset not supported on this os")
|
|
|
|
}
|