2017-08-28 19:23:32 +08:00
|
|
|
// +build !linux
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
2017-09-10 20:33:35 +08:00
|
|
|
// IPSetManager struct
|
|
|
|
type IPSetManager struct{}
|
2017-08-28 19:23:32 +08:00
|
|
|
|
2017-09-10 20:33:35 +08:00
|
|
|
// NewIPSetManager returns a IPSetManager
|
2017-08-29 18:36:42 +08:00
|
|
|
func NewIPSetManager(mainSet string, rules []*RuleConf) (*IPSetManager, 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
|
2017-08-28 19:23:32 +08:00
|
|
|
func (m *IPSetManager) AddDomainIP(domain, ip string) error {
|
|
|
|
return errors.New("ipset not supported on this os")
|
|
|
|
}
|