2021-08-12 19:11:06 +08:00
|
|
|
//go:build !linux
|
2017-08-28 19:23:32 +08:00
|
|
|
// +build !linux
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
"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
|
2018-08-14 19:33:18 +08:00
|
|
|
func (m *Manager) AddDomainIP(domain, ip string) error {
|
2017-08-28 19:23:32 +08:00
|
|
|
return errors.New("ipset not supported on this os")
|
|
|
|
}
|