Skip to content

Commit

Permalink
removing faulty code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Jun 3, 2024
1 parent df4a317 commit 72ca0a1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fastdialer/utils/dialwrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,6 @@ func (d *DialWrap) dial(ctx context.Context) (net.Conn, error) {
ctx = subCtx
}
}
if len(d.ips) == 1 {
// use default dialer when there is only one ip
return d.dialer.DialContext(ctx, d.network, d.address)
}

if d.network == "tcp" && d.dualStack() {
return d.dialParallel(ctx, d.ipv4, d.ipv6, d.network, d.port)
Expand Down

0 comments on commit 72ca0a1

Please sign in to comment.