2021-01-29 15:53:39 +00:00
|
|
|
// +build !linux
|
|
|
|
|
2021-05-21 11:55:42 +00:00
|
|
|
//go:build !linux
|
|
|
|
|
2021-01-29 15:53:39 +00:00
|
|
|
package dnsforward
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/AdguardTeam/golibs/log"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ipsetCtx struct{}
|
|
|
|
|
|
|
|
// init initializes the ipset context.
|
|
|
|
func (c *ipsetCtx) init(ipsetConfig []string) (err error) {
|
|
|
|
if len(ipsetConfig) != 0 {
|
|
|
|
log.Info("ipset: only available on linux")
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// process adds the resolved IP addresses to the domain's ipsets, if any.
|
|
|
|
func (c *ipsetCtx) process(_ *dnsContext) (rc resultCode) {
|
|
|
|
return resultCodeSuccess
|
|
|
|
}
|
|
|
|
|
|
|
|
// Close closes the Linux Netfilter connections.
|
|
|
|
func (c *ipsetCtx) Close() (_ error) { return nil }
|