0
0
mirror of https://github.com/XTLS/REALITY.git synced 2025-08-22 14:38:35 +00:00
This commit is contained in:
Meo597 2025-06-08 17:57:55 +08:00
parent 021948a552
commit 1eecf21a00

View File

@ -537,6 +537,12 @@ const (
RenegotiateFreelyAsClient
)
type LimitFallback struct {
AfterBytes int64
BytesPerSec float64
BurstBytesPerSec int64
}
// A Config structure is used to configure a TLS client or server.
// After one has been passed to a TLS function it must not be
// modified. A Config may be reused; the tls package will also not
@ -949,12 +955,6 @@ func (c *Config) ticketKeyFromBytes(b [32]byte) (key ticketKey) {
return key
}
type LimitFallback struct {
BytesPerSec float64
BurstBytesPerSec int64
AfterBytes int64
}
// maxSessionTicketLifetime is the maximum allowed lifetime of a TLS 1.3 session
// ticket, and the lifetime we set for all tickets we send.
const maxSessionTicketLifetime = 7 * 24 * time.Hour