Commit 34f9cd2
authored
fix: try all resolved socket addrs for connection (#1651)
For the dealer connection, only the first address was tried. For example
when using a VPN, which doesn't support IPv6, the first address might
still be an IPv6 address and thus fail. The IPv4 address later in the
list is never tried. This relies on the tokio default to try all resolved
addresses and use the first that was successful.1 parent a77fc35 commit 34f9cd2
1 file changed
+7
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 12 | + | |
| 13 | + | |
21 | 14 | | |
22 | | - | |
| 15 | + | |
23 | 16 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 17 | + | |
| 18 | + | |
34 | 19 | | |
0 commit comments