mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
Tidy up most errors and warnings from lint tools. (#165)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user