Skip to content

Commit efd38b8

Browse files
authored
Merge pull request #130 from TobyX424242/patch-1
Change HTTP3 conditional to else if statement
2 parents 3f3ae8d + 00b537d commit efd38b8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

transport/http.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ func (h *HTTP) Exchange(m *dns.Msg) (*dns.Msg, error) {
4141
TLSClientConfig: h.TLSConfig,
4242
AllowHTTP: true,
4343
}
44-
}
45-
if h.HTTP3 {
44+
}else if h.HTTP3 {
4645
log.Debug("Using HTTP/3")
4746
h.conn.Transport = &http3.Transport{
4847
TLSClientConfig: h.TLSConfig,

0 commit comments

Comments
 (0)