If it's a wildcard, turns it into a real address pointing to internet */
| 1411 | |
| 1412 | /* If it's a wildcard, turns it into a real address pointing to internet */ |
| 1413 | static bool public_address(struct daemon *daemon, struct wireaddr *wireaddr) |
| 1414 | { |
| 1415 | if (wireaddr_is_wildcard(wireaddr)) { |
| 1416 | if (!guess_address(wireaddr)) |
| 1417 | return false; |
| 1418 | } |
| 1419 | |
| 1420 | /* --dev-allow-localhost treats the localhost as "public" for testing */ |
| 1421 | return address_routable(wireaddr, daemon->dev_allow_localhost); |
| 1422 | } |
| 1423 | |
| 1424 | static void add_announceable(struct wireaddr **announceable, |
| 1425 | const struct wireaddr *addr) |
no test coverage detected