Skip to content

Commit

Permalink
Removing fallback mechanism with custom ip
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Nov 2, 2022
1 parent bff4806 commit 8e9343e
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 8e9343e

Please sign in to comment.