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 543cd64 commit bda5dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func handleConnection(clientConn net.Conn) {
return
}

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

0 comments on commit bda5dbf

Please sign in to comment.