fix quic
This commit is contained in:
parent
45cecbc145
commit
5dec8c2014
|
@ -57,7 +57,7 @@ func (h *extensionHandlerClient) Send(hType mint.HandshakeType, el *mint.Extensi
|
||||||
|
|
||||||
func (h *extensionHandlerClient) Receive(hType mint.HandshakeType, el *mint.ExtensionList) error {
|
func (h *extensionHandlerClient) Receive(hType mint.HandshakeType, el *mint.ExtensionList) error {
|
||||||
ext := &tlsExtensionBody{}
|
ext := &tlsExtensionBody{}
|
||||||
found := el.Find(ext)
|
found, _ := el.Find(ext)
|
||||||
|
|
||||||
if hType != mint.HandshakeTypeEncryptedExtensions && hType != mint.HandshakeTypeNewSessionTicket {
|
if hType != mint.HandshakeTypeEncryptedExtensions && hType != mint.HandshakeTypeNewSessionTicket {
|
||||||
if found {
|
if found {
|
||||||
|
|
|
@ -66,7 +66,7 @@ func (h *extensionHandlerServer) Send(hType mint.HandshakeType, el *mint.Extensi
|
||||||
|
|
||||||
func (h *extensionHandlerServer) Receive(hType mint.HandshakeType, el *mint.ExtensionList) error {
|
func (h *extensionHandlerServer) Receive(hType mint.HandshakeType, el *mint.ExtensionList) error {
|
||||||
ext := &tlsExtensionBody{}
|
ext := &tlsExtensionBody{}
|
||||||
found := el.Find(ext)
|
found, _ := el.Find(ext)
|
||||||
|
|
||||||
if hType != mint.HandshakeTypeClientHello {
|
if hType != mint.HandshakeTypeClientHello {
|
||||||
if found {
|
if found {
|
||||||
|
|
Loading…
Reference in New Issue