Commit 1cc0a30
committed
fix: use dual-stack socket instead of IPv4-only
By using an INET6 socket with IPV6_V6ONLY disabled, legacy IPv4 can still be reached. To connect to v4 IPs, the addresses are mapped to IPv6. IPv6 addresses are only used when a hostname resolves to one and the system has a non-local IPv6 available.1 parent c162144 commit 1cc0a30
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
356 | 365 | | |
357 | 366 | | |
358 | 367 | | |
| |||
1135 | 1144 | | |
1136 | 1145 | | |
1137 | 1146 | | |
1138 | | - | |
| 1147 | + | |
| 1148 | + | |
1139 | 1149 | | |
1140 | 1150 | | |
1141 | 1151 | | |
| |||
0 commit comments