Skip to content

Commit 40d31ef

Browse files
authored
Change HTTP3 conditional to else if statement
fix the issue of repeated query when both http2 and http3 flag provided
1 parent 3f3ae8d commit 40d31ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

transport/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (h *HTTP) Exchange(m *dns.Msg) (*dns.Msg, error) {
4242
AllowHTTP: true,
4343
}
4444
}
45-
if h.HTTP3 {
45+
else if h.HTTP3 {
4646
log.Debug("Using HTTP/3")
4747
h.conn.Transport = &http3.Transport{
4848
TLSClientConfig: h.TLSConfig,

0 commit comments

Comments
 (0)