Browse Source
This is simply the code to set up the automatic hidden service, so move it into lightningd. I removed the undefined parse_tor_wireaddr, and added a parameter name to the create_tor_hidden_service_conn() declaration for update-mocks. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>ppa-0.6.1
Rusty Russell
7 years ago
8 changed files with 21 additions and 19 deletions
@ -1,13 +0,0 @@ |
|||
#ifndef LIGHTNING_COMMON_TOR_H |
|||
#define LIGHTNING_COMMON_TOR_H |
|||
#include "config.h" |
|||
#include <ccan/short_types/short_types.h> |
|||
#include <ccan/tal/tal.h> |
|||
#include <lightningd/lightningd.h> |
|||
#include <stdbool.h> |
|||
#include <stdlib.h> |
|||
|
|||
bool check_return_from_service_call(void); |
|||
bool parse_tor_wireaddr(const char *arg,u8 *ip_ld,u16 *port_ld); |
|||
bool create_tor_hidden_service_conn(struct lightningd *); |
|||
#endif /* LIGHTNING_COMMON_TOR_H */ |
@ -0,0 +1,12 @@ |
|||
#ifndef LIGHTNING_LIGHTNINGD_TOR_H |
|||
#define LIGHTNING_LIGHTNINGD_TOR_H |
|||
#include "config.h" |
|||
#include <ccan/short_types/short_types.h> |
|||
#include <ccan/tal/tal.h> |
|||
#include <lightningd/lightningd.h> |
|||
#include <stdbool.h> |
|||
#include <stdlib.h> |
|||
|
|||
bool check_return_from_service_call(void); |
|||
bool create_tor_hidden_service_conn(struct lightningd *ld); |
|||
#endif /* LIGHTNING_LIGHTNINGD_TOR_H */ |
Loading…
Reference in new issue