Pull request: AG-33410-aghos-err
Merge in DNS/adguard-home from AG-33410-aghos-err to master Squashed commit of the following: commit 6014ea1e919ea685475561e4a46284847f67ac99 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Fri Jun 14 08:30:30 2024 +0300 all: imp code commit 232b207d8da42dad297f2730c42e5e84f9049ab9 Author: Dimitry Kolyshev <dkolyshev@adguard.com> Date: Thu Jun 13 12:18:41 2024 +0300 all: rm aghos unsupported err
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/AdguardTeam/AdGuardHome/internal/aghos"
|
||||
"github.com/AdguardTeam/AdGuardHome/internal/ipset"
|
||||
"github.com/AdguardTeam/golibs/errors"
|
||||
"github.com/AdguardTeam/golibs/log"
|
||||
@@ -35,7 +34,7 @@ func (c *ipsetCtx) init(ipsetConf []string) (err error) {
|
||||
log.Info("ipset: warning: cannot initialize: %s", err)
|
||||
|
||||
return nil
|
||||
} else if unsupErr := (&aghos.UnsupportedError{}); errors.As(err, &unsupErr) {
|
||||
} else if errors.Is(err, errors.ErrUnsupported) {
|
||||
log.Info("ipset: warning: %s", err)
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user