Sam Therapy
e782c9cb23
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
26 lines
652 B
Go
26 lines
652 B
Go
// 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
|
|
}
|