Skip to content

Commit

Permalink
small optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
uoosef committed Nov 23, 2023
1 parent bda5dbf commit 005b517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ func handleConnection(clientConn net.Conn) {
return
}

if clientHello.ServerName == nil || strings.TrimSpace(clientHello.ServerName) == "" {
log.Println("null server name not allowed")
if strings.TrimSpace(clientHello.ServerName) == "" {
log.Println("empty sni not allowed here")
return
}

Expand Down

0 comments on commit 005b517

Please sign in to comment.