Fix linter configuration

This commit is contained in:
世界
2024-12-29 18:39:22 +08:00
parent 5b79a3c932
commit 4c6348aae0
9 changed files with 22 additions and 6 deletions

View File

@@ -147,6 +147,9 @@ func echKeygen(version uint16, serverName string, conf []myECHKeyConfig, suite [
pair.rawConf = b
secBuf, err := sec.MarshalBinary()
if err != nil {
return nil, E.Cause(err, "serialize ECH private key")
}
sk := []byte{}
sk = be.AppendUint16(sk, uint16(len(secBuf)))
sk = append(sk, secBuf...)