Skip to content

Commit

Permalink
Add tls serverName to DoQ
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhan6665 committed Jun 4, 2023
1 parent 86b4b81 commit a4e80f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/dns/nameserver_quic.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func (s *QUICNameServer) openConnection() (quic.Connection, error) {
quicConfig := &quic.Config{
HandshakeIdleTimeout: handshakeTimeout,
}

tlsConfig.ServerName = s.destination.Address.String()
conn, err := quic.DialAddr(context.Background(), s.destination.NetAddr(), tlsConfig.GetTLSConfig(tls.WithNextProto("http/1.1", http2.NextProtoTLS, NextProtoDQ)), quicConfig)
log.Record(&log.AccessMessage{
From: "DNS",
Expand Down

0 comments on commit a4e80f0

Please sign in to comment.