Skip to content

Commit a4e80f0

Browse files
committed
Add tls serverName to DoQ
1 parent 86b4b81 commit a4e80f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/dns/nameserver_quic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ func (s *QUICNameServer) openConnection() (quic.Connection, error) {
373373
quicConfig := &quic.Config{
374374
HandshakeIdleTimeout: handshakeTimeout,
375375
}
376-
376+
tlsConfig.ServerName = s.destination.Address.String()
377377
conn, err := quic.DialAddr(context.Background(), s.destination.NetAddr(), tlsConfig.GetTLSConfig(tls.WithNextProto("http/1.1", http2.NextProtoTLS, NextProtoDQ)), quicConfig)
378378
log.Record(&log.AccessMessage{
379379
From: "DNS",

0 commit comments

Comments
 (0)