Skip to content

Commit

Permalink
Merge pull request #297 from projectdiscovery/bugfix-custom-ip
Browse files Browse the repository at this point in the history
Removing code not handling custom ip
  • Loading branch information
Mzack9999 authored Jun 3, 2024
2 parents df4a317 + 72ca0a1 commit 64d7b58
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 64d7b58

Please sign in to comment.