Browse Source

Add tls serverName to DoQ

pull/2173/head
yuhan6665 1 year ago
parent
commit
a4e80f01e4
  1. 2
      app/dns/nameserver_quic.go

2
app/dns/nameserver_quic.go

@ -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",

Loading…
Cancel
Save