If it's a wildcard, turns it into a real address pointing to internet */
| 1360 | |
| 1361 | /* If it's a wildcard, turns it into a real address pointing to internet */ |
| 1362 | static bool public_address(struct daemon *daemon, struct wireaddr *wireaddr) |
| 1363 | { |
| 1364 | if (wireaddr_is_wildcard(wireaddr)) { |
| 1365 | if (!guess_address(wireaddr)) |
| 1366 | return false; |
| 1367 | } |
| 1368 | |
| 1369 | /* --dev-allow-localhost treats the localhost as "public" for testing */ |
| 1370 | return address_routable(wireaddr, daemon->dev_allow_localhost); |
| 1371 | } |
| 1372 | |
| 1373 | static void add_announceable(struct wireaddr **announceable, |
| 1374 | const struct wireaddr *addr) |
no test coverage detected