Skip to content

Commit

Permalink
tweak SetDo doc (#1488)
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 authored Oct 10, 2023
1 parent 4d3b87f commit 0d504a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion edns.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (rr *OPT) Do() bool {

// SetDo sets the DO (DNSSEC OK) bit.
// If we pass an argument, set the DO bit to that value.
// It is possible to pass 2 or more arguments. Any arguments after the 1st is silently ignored.
// It is possible to pass 2 or more arguments, but they will be ignored.
func (rr *OPT) SetDo(do ...bool) {
if len(do) == 1 {
if do[0] {
Expand Down Expand Up @@ -508,6 +508,7 @@ func (e *EDNS0_LLQ) String() string {
" " + strconv.FormatUint(uint64(e.LeaseLife), 10)
return s
}

func (e *EDNS0_LLQ) copy() EDNS0 {
return &EDNS0_LLQ{e.Code, e.Version, e.Opcode, e.Error, e.Id, e.LeaseLife}
}
Expand Down

0 comments on commit 0d504a6

Please sign in to comment.