Skip to content

Commit afe379e

Browse files
committed
upstream: imp code
1 parent 7e33518 commit afe379e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

upstream/upstream.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,7 @@ func newDialerInitializer(u *url.URL, opts *Options) (di DialerInitializer) {
386386
l = slog.Default()
387387
}
388388

389-
// TODO(e.burkov): Add netutil.IsValidIPPortString.
390-
if _, err := netip.ParseAddrPort(u.Host); err == nil {
389+
if netutil.IsValidIPPortString(u.Host) {
391390
// Don't resolve the address of the server since it's already an IP.
392391
handler := bootstrap.NewDialContext(opts.Timeout, l, u.Host)
393392

0 commit comments

Comments
 (0)