2018-07-24 08:18:58 +02:00
|
|
|
#ifndef LIGHTNING_CONNECTD_NETADDRESS_H
|
|
|
|
#define LIGHTNING_CONNECTD_NETADDRESS_H
|
2018-05-07 06:29:21 +02:00
|
|
|
#include "config.h"
|
2018-05-07 06:29:21 +02:00
|
|
|
#include <common/wireaddr.h>
|
2018-05-07 06:29:21 +02:00
|
|
|
|
2018-05-07 06:29:22 +02:00
|
|
|
/* Address is a wildcard: try to guess what it looks like to outside world */
|
|
|
|
bool guess_address(struct wireaddr *wireaddr);
|
|
|
|
|
|
|
|
/* Is this address public? */
|
2018-05-07 06:29:22 +02:00
|
|
|
bool address_routable(const struct wireaddr *wireaddr,
|
|
|
|
bool allow_localhost);
|
2018-05-07 06:29:21 +02:00
|
|
|
|
2018-07-24 08:18:58 +02:00
|
|
|
#endif /* LIGHTNING_CONNECTD_NETADDRESS_H */
|