glider/ipset/ipset_other.go

23 lines
499 B
Go
Raw Normal View History

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