mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 09:25:41 +08:00
23 lines
499 B
Go
23 lines
499 B
Go
// +build !linux
|
|
|
|
package ipset
|
|
|
|
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")
|
|
}
|