Skip to content

Commit

Permalink
Fix #260: enable KeepAlive for DoQ
Browse files Browse the repository at this point in the history
  • Loading branch information
ameshkov committed Aug 15, 2022
1 parent 771d486 commit 401d87a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion upstream/upstream_quic.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ func (p *dnsOverQUIC) openConnection() (conn quic.Connection, err error) {
}

addr := udpConn.RemoteAddr().String()
quicConfig := &quic.Config{}
quicConfig := &quic.Config{
KeepAlive: true,
}
conn, err = quic.DialAddrContext(context.Background(), addr, tlsConfig, quicConfig)
if err != nil {
return nil, fmt.Errorf("opening quic connection to %s: %w", p.Address(), err)
Expand Down

0 comments on commit 401d87a

Please sign in to comment.