Skip to content

Commit

Permalink
dnsforward: imp code
Browse files Browse the repository at this point in the history
  • Loading branch information
schzhn committed Aug 22, 2024
1 parent a1c0011 commit 51ff7d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/dnsforward/ipset.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type ipsetHandler struct {
}

// 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(
ctx context.Context,
logger *slog.Logger,
Expand Down Expand Up @@ -50,7 +50,7 @@ func newIpsetHandler(

return h, nil
} else if err != nil {
return h, fmt.Errorf("initializing ipset: %w", err)
return nil, fmt.Errorf("initializing ipset: %w", err)
}

return h, nil
Expand Down

0 comments on commit 51ff7d8

Please sign in to comment.