Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dviejokfs committed Apr 3, 2022
1 parent c912c3e commit 0b88583
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ func (c *serverCmd) run() error {
}

}()
log.Info().Msgf("listening requests %s", c.addr)
for {
log.Info().Msgf("listening requests %s", c.addr)
conn, err := server.Accept()
if err != nil {
panic(err)
Expand All @@ -121,9 +121,9 @@ func (c *serverCmd) run() error {

clientHello, originalConn, err := peekClientHello(conn)
if err != nil {
err = conn.Close()
if err != nil {
log.Warn().Msgf("Failed to close connection: %v", err)
connErrClose := conn.Close()
if connErrClose != nil {
log.Warn().Msgf("Failed to close connection: %v", connErrClose)
}
log.Error().Msgf("Error extracting client hello %v", err)
continue
Expand Down

0 comments on commit 0b88583

Please sign in to comment.