9f5a015f42
Updates #2419. Squashed commit of the following: commit e57e6ce56c59d4ef42b1716247fe48a86404179e Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Tue Jun 15 19:37:15 2021 +0300 all: imp build tags
28 lines
584 B
Go
28 lines
584 B
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
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 }
|