Skip to content

Commit

Permalink
fix: add missing port when use domain
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jin-gou committed Jul 26, 2022
1 parent a6d2078 commit 54bc89e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/app/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import (
"bytes"
"context"
"fmt"
"github.com/cloudwego/hertz/pkg/common/utils"
"sync"
"time"

Expand Down Expand Up @@ -485,7 +486,7 @@ func (c *Client) do(ctx context.Context, req *protocol.Request, resp *protocol.R
}
hc, _ = c.clientFactory.NewHostClient()
hc.SetDynamicConfig(&client.DynamicConfig{
Addr: h,
Addr: utils.AddMissingPort(h, isTLS),
ProxyURI: proxyURI,
IsTLS: isTLS,
})
Expand Down

0 comments on commit 54bc89e

Please sign in to comment.