Commit 4976e91
committed
test: fix IPv6 support detection
`test_ipv6_local()` could have returned false whereas subsequently
bitcoind successfully binds to `::`.
This is because the previously used `s.connect(('::1', 0))` can throw
an exception like `[Errno 99] Cannot assign requested address` on hosts
where IPv6 is available and bitcoind readily binds to `::`.1 parent d67883d commit 4976e91
1 file changed
+12
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
0 commit comments