Skip to content

Commit

Permalink
removed a buggy if
Browse files Browse the repository at this point in the history
  • Loading branch information
mosajjal committed Apr 8, 2024
1 parent 4f27880 commit 8c05b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/https.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func handle443(c *Config, conn net.Conn, httpslog zerolog.Logger) error {
} else {
// TODO: lookup needs to be both ipv4 and ipv6
rAddrTmp, err := c.DnsClient.lookupDomain(sni, c.PreferredVersion)
if err != nil || rAddr == nil {
if err != nil {
httpslog.Warn().Msg(err.Error())
return err
}
Expand Down

0 comments on commit 8c05b13

Please sign in to comment.