Skip to content

Commit

Permalink
small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
uoosef committed Nov 23, 2023
1 parent cc92ba2 commit 9fe25fb
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 @@ -277,7 +277,7 @@ func handleConnection(clientConn net.Conn) {
targetHost := strings.ToLower(clientHello.ServerName)

if targetHost == config.Host {
targetHost = net.JoinHostPort(targetHost, "8443")
targetHost = "127.0.0.1:8443"
} else {
targetHost = net.JoinHostPort(targetHost, "443")
}
Expand Down

0 comments on commit 9fe25fb

Please sign in to comment.