Tidy up most errors and warnings from lint tools. (#165)
This commit is contained in:
parent
255aa2e5d5
commit
2882991000
12 changed files with 26 additions and 26 deletions
|
@ -58,7 +58,7 @@ func addStubEdns0(m *dns.Msg) *dns.Msg {
|
|||
option := m.IsEdns0()
|
||||
// Add a custom EDNS0 option to the packet, so we can detect loops when 2 stubs are forwarding to each other.
|
||||
if option != nil {
|
||||
option.Option = append(option.Option, &dns.EDNS0_LOCAL{ednsStubCode, []byte{1}})
|
||||
option.Option = append(option.Option, &dns.EDNS0_LOCAL{Code: ednsStubCode, Data: []byte{1}})
|
||||
return m
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue