feat!(quic): Remove gccgo support
Since gccgo is stuck at 1.18 without generics, drop support sadge Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
c5c90b97af
commit
59fa146d7f
2 changed files with 0 additions and 27 deletions
|
@ -1,5 +1,4 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//go:build !gccgo
|
||||
|
||||
package resolvers
|
||||
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//go:build gccgo
|
||||
|
||||
// TODO: Whenever gccgo supports quic-go, delete this
|
||||
package resolvers
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"dns.froth.zone/awl/pkg/util"
|
||||
"github.com/miekg/dns"
|
||||
)
|
||||
|
||||
// QUICResolver is for DNS-over-QUIC queries.
|
||||
type QUICResolver struct {
|
||||
opts *util.Options
|
||||
}
|
||||
|
||||
var _ Resolver = (*QUICResolver)(nil)
|
||||
|
||||
var errNotImplemented = errors.New("DNS-over-QUIC not supported when running gccgo!")
|
||||
|
||||
// LookUp cannot be used with gccgo because gccgo does not (and likely will not) support generics.
|
||||
func (resolver *QUICResolver) LookUp(msg *dns.Msg) (util.Response, error) {
|
||||
return util.Response{}, errNotImplemented
|
||||
}
|
Loading…
Reference in a new issue