glider/ipset_other.go
2018-08-12 22:24:49 +08:00

23 lines
498 B
Go

// +build !linux
package main
import (
"errors"
"github.com/nadoo/glider/rule"
)
// IPSetManager struct
type IPSetManager struct{}
// NewIPSetManager returns a IPSetManager
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")
}