mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-25 06:25:44 +03:00
dnsforward: imp code
This commit is contained in:
parent
a1c0011273
commit
51ff7d8c49
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ type ipsetHandler struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// newIpsetHandler returns a new initialized [ipsetHandler]. It is not safe for
|
// newIpsetHandler returns a new initialized [ipsetHandler]. It is not safe for
|
||||||
// concurrent use. c is always non-nil for [Server.Close].
|
// concurrent use.
|
||||||
func newIpsetHandler(
|
func newIpsetHandler(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
logger *slog.Logger,
|
logger *slog.Logger,
|
||||||
|
@ -50,7 +50,7 @@ func newIpsetHandler(
|
||||||
|
|
||||||
return h, nil
|
return h, nil
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
return h, fmt.Errorf("initializing ipset: %w", err)
|
return nil, fmt.Errorf("initializing ipset: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return h, nil
|
return h, nil
|
||||||
|
|
Loading…
Reference in a new issue