Skip to content

Commit

Permalink
Update util/edns0.go
Browse files Browse the repository at this point in the history
Co-authored-by: ThinkChaos <[email protected]>
  • Loading branch information
kwitsch and ThinkChaos authored Nov 17, 2023
1 parent 1b98b81 commit e8597d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/edns0.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func SetEdns0Option(msg *dns.Msg, opt dns.EDNS0) {

optRecord := GetEdns0Record(msg)

newOpts := make([]dns.EDNS0, 0, len(optRecord.Option))
newOpts := make([]dns.EDNS0, 0, len(optRecord.Option) + 1)

for _, o := range optRecord.Option {
if o.Option() != opt.Option() {
Expand Down

0 comments on commit e8597d6

Please sign in to comment.