From dc82a4a99ccbfc578feecfe33d2b0ee8bbeed379 Mon Sep 17 00:00:00 2001 From: 3andne <52860475+3andne@users.noreply.github.com> Date: Sun, 12 Mar 2023 11:41:20 -0700 Subject: [PATCH] fix: tag restls modifications --- handshake_client_tls13.go | 2 +- u_conn.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/handshake_client_tls13.go b/handshake_client_tls13.go index bc39582..c588174 100644 --- a/handshake_client_tls13.go +++ b/handshake_client_tls13.go @@ -778,7 +778,7 @@ func (c *Conn) handleNewSessionTicket(msg *newSessionTicketMsgTLS13) error { return errors.New("tls: received new session ticket from a client") } - debugf("c.config.SessionTicketsDisabled %v || c.config.ClientSessionCache == nil %v\n", c.config.SessionTicketsDisabled, c.config.ClientSessionCache == nil) + debugf("c.config.SessionTicketsDisabled %v || c.config.ClientSessionCache == nil %v\n", c.config.SessionTicketsDisabled, c.config.ClientSessionCache == nil) // #Restls# if c.config.SessionTicketsDisabled || c.config.ClientSessionCache == nil { return nil diff --git a/u_conn.go b/u_conn.go index 7cf7495..0007eb9 100644 --- a/u_conn.go +++ b/u_conn.go @@ -427,7 +427,7 @@ func (c *UConn) clientHandshake(ctx context.Context) (err error) { return err } if cacheKey != "" && session != nil { - debugf("found session") + debugf("found session") // #Restls# defer func() { // If we got a handshake failure when resuming a session, throw away // the session ticket. See RFC 5077, Section 3.2.