mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-27 22:39:57 +00:00
TUN-6637: Upgrade quic-go
This commit is contained in:
12
vendor/github.com/lucas-clemente/quic-go/internal/protocol/connection_id.go
generated
vendored
12
vendor/github.com/lucas-clemente/quic-go/internal/protocol/connection_id.go
generated
vendored
@@ -67,3 +67,15 @@ func (c ConnectionID) String() string {
|
||||
}
|
||||
return fmt.Sprintf("%x", c.Bytes())
|
||||
}
|
||||
|
||||
type DefaultConnectionIDGenerator struct {
|
||||
ConnLen int
|
||||
}
|
||||
|
||||
func (d *DefaultConnectionIDGenerator) GenerateConnectionID() ([]byte, error) {
|
||||
return GenerateConnectionID(d.ConnLen)
|
||||
}
|
||||
|
||||
func (d *DefaultConnectionIDGenerator) ConnectionIDLen() int {
|
||||
return d.ConnLen
|
||||
}
|
||||
|
Reference in New Issue
Block a user