mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-17 02:48:28 -07:00
27 lines
566 B
Go
27 lines
566 B
Go
|
// +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 }
|