Skip to content

Commit

Permalink
Fix network parameter in dialContextCheckACL function
Browse files Browse the repository at this point in the history
  • Loading branch information
arloor committed Feb 27, 2024
1 parent 95c7625 commit 16272ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/connectHandlerFunc.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
func dialContextCheckACL(network, hostPort string) (net.Conn, error) {
// This is net.Dial's default behavior: if the host resolves to multiple IP addresses,
// Dial will try each IP address in order until one succeeds
return net.Dial("tcp", hostPort)
return net.Dial(network, hostPort)
}

func connect(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit 16272ac

Please sign in to comment.