mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 01:15:41 +08:00
24 lines
473 B
Go
24 lines
473 B
Go
//go:build !linux
|
|
|
|
package ipset
|
|
|
|
import (
|
|
"errors"
|
|
"net/netip"
|
|
|
|
"github.com/nadoo/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 string, ip netip.Addr) error {
|
|
return errors.New("ipset not supported on this os")
|
|
}
|