Skip to content

Commit

Permalink
Merge pull request #67 from projectdiscovery/issue-64-custom-ip
Browse files Browse the repository at this point in the history
Removing fallback mechanism with custom ip
  • Loading branch information
Mzack9999 committed Nov 13, 2022
2 parents 729422a + 8e9343e commit 139ef96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fastdialer/dialer.go
Expand Up @@ -196,8 +196,9 @@ func (d *Dialer) dial(ctx context.Context, network, address string, shouldUseTLS
// use fixed ip as first
if fixedIP != "" {
IPS = append(IPS, fixedIP)
} else {
IPS = append(IPS, append(data.A, data.AAAA...)...)
}
IPS = append(IPS, append(data.A, data.AAAA...)...)

// Dial to the IPs finally.
for _, ip := range IPS {
Expand Down

0 comments on commit 139ef96

Please sign in to comment.