Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
eshitachandwani committed Dec 23, 2024
1 parent a292b63 commit 4483e95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/transport/http2_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func dial(ctx context.Context, fn func(context.Context, string) (net.Conn, error

// A non-empty ConnectAddr attribute indicates that a proxy is configured,
// so initiate a proxy dial.
if _, present := proxyattributes.ExtractOptions(addr); present {
if _, present := proxyattributes.Get(addr); present {
return proxyDial(ctx, addr, grpcUA)
}
networkType, ok := networktype.Get(addr)
Expand Down
2 changes: 1 addition & 1 deletion internal/transport/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func doHTTPConnectHandshake(ctx context.Context, conn net.Conn, addr resolver.Ad
}
}()

opts, _ := proxyattributes.ExtractOptions(addr)
opts, _ := proxyattributes.Get(addr)
req := &http.Request{
Method: http.MethodConnect,
URL: &url.URL{Host: opts.ConnectAddr},
Expand Down

0 comments on commit 4483e95

Please sign in to comment.