Skip to content

Commit

Permalink
make the doh/3 listener 0rtt compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardWalter committed Nov 19, 2024
1 parent 62d4c81 commit 7dceef5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dohlistener.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ func (s *DoHListener) startQUIC() error {
Addr: s.addr,
TLSConfig: s.opt.TLSConfig,
Handler: s.handler,
QUICConfig: &quic.Config{},
QUICConfig: &quic.Config{
Allow0RTT: true,
MaxIdleTimeout: 5 * time.Minute,
},
}
return s.quicServer.ListenAndServe()
}
Expand Down

0 comments on commit 7dceef5

Please sign in to comment.