refraction-networking / utls

Fork of the Go standard TLS library, providing low-level access to the ClientHello for mimicry purposes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better naming for Padding and GREASE QUIC Transport Parameters

gaukas opened this issue · comments

The naming for

type GREASE struct {
IdOverride uint64 // if set to a valid GREASE ID, use this instead of randomly generated one.
Length uint16 // if len(ValueOverride) == 0, will generate random data of this size.
ValueOverride []byte // if len(ValueOverride) > 0, use this instead of random bytes.
}

and
type Padding []byte

are ambiguous and not comprehensive enough. Possibly we should rename it to PaddingTransportParameter and GREASETransportParameter.