refraction-networking/utls

Better naming for Padding and GREASE QUIC Transport Parameters

gaukas opened this issue · 0 comments

gaukas commented

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.