From 1eecf21a00c222ea8513c9458b280027ab3be085 Mon Sep 17 00:00:00 2001 From: Meo597 <197331664+Meo597@users.noreply.github.com> Date: Sun, 8 Jun 2025 17:57:55 +0800 Subject: [PATCH] order --- common.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common.go b/common.go index 8cbd657..d76d38e 100644 --- a/common.go +++ b/common.go @@ -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