glider/ipset/ipset_other.go
2019-11-24 13:02:22 +08:00

23 lines
451 B
Go

// +build !linux
package ipset
import (
"errors"
"github.com/dongxinb/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, ip string) error {
return errors.New("ipset not supported on this os")
}