| 1448 | } |
| 1449 | |
| 1450 | static bool want_tor(const struct wireaddr_internal *proposed_wireaddr) |
| 1451 | { |
| 1452 | for (size_t i = 0; i < tal_count(proposed_wireaddr); i++) { |
| 1453 | if (proposed_wireaddr[i].itype == ADDR_INTERNAL_STATICTOR |
| 1454 | || proposed_wireaddr[i].itype == ADDR_INTERNAL_AUTOTOR) |
| 1455 | return true; |
| 1456 | } |
| 1457 | return false; |
| 1458 | } |
| 1459 | |
| 1460 | /*~ The user can specify three kinds of addresses: ones we bind to but don't |
| 1461 | * announce, ones we announce but don't bind to, and ones we bind to and |