Skip to content

Commit

Permalink
upstream: fix nil deref
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Nov 3, 2023
1 parent e897536 commit eb12aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upstream/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func NewUpstreamResolver(resolverAddress string, opts *Options) (r *UpstreamReso

return &UpstreamResolver{
Upstream: ups,
PreferIPv6: opts.PreferIPv6,
PreferIPv6: upsOpts.PreferIPv6,
}, validateBootstrap(ups)
}

Expand Down

0 comments on commit eb12aec

Please sign in to comment.