upgrade quic-go

This commit is contained in:
ginuerzh
2022-08-18 13:12:11 +08:00
parent f3f3acd4e1
commit bd60c2cf14
12 changed files with 53 additions and 50 deletions

View File

@ -8,7 +8,7 @@ import (
)
type metadata struct {
keepAlive bool
keepAlive time.Duration
maxIdleTimeout time.Duration
handshakeTimeout time.Duration
}
@ -22,7 +22,7 @@ func (d *icmpDialer) parseMetadata(md mdata.Metadata) (err error) {
d.md.handshakeTimeout = mdx.GetDuration(md, handshakeTimeout)
d.md.keepAlive = mdx.GetBool(md, keepAlive)
d.md.keepAlive = mdx.GetDuration(md, keepAlive)
d.md.handshakeTimeout = mdx.GetDuration(md, handshakeTimeout)
d.md.maxIdleTimeout = mdx.GetDuration(md, maxIdleTimeout)