If it's a wildcard, turns it into a real address pointing to internet */
| 1074 | |
| 1075 | /* If it's a wildcard, turns it into a real address pointing to internet */ |
| 1076 | static bool public_address(struct daemon *daemon, struct wireaddr *wireaddr) |
| 1077 | { |
| 1078 | if (wireaddr_is_wildcard(wireaddr)) { |
| 1079 | if (!guess_address(wireaddr)) |
| 1080 | return false; |
| 1081 | } |
| 1082 | |
| 1083 | /* --dev-allow-localhost treats the localhost as "public" for testing */ |
| 1084 | return address_routable(wireaddr, daemon->dev_allow_localhost); |
| 1085 | } |
| 1086 | |
| 1087 | static void add_announceable(struct wireaddr **announceable, |
| 1088 | const struct wireaddr *addr) |
no test coverage detected