mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-15 03:54:19 +01:00
This is a rebased and combined patch for Tor support. It is extensively reworked in the following patches, but the basis remains Saibato's work, so it seemed fairest to begin with this. Minor changes: 1. Use --announce-addr instead of --tor-external. 2. I also reverted some whitespace and unrelated changes from the patch. 3. Removed unnecessary ';' after } in functions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
15 lines
488 B
C
15 lines
488 B
C
#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 *);
|
|
bool do_we_use_tor_addr(const struct wireaddr *wireaddrs);
|
|
#endif /* LIGHTNING_COMMON_TOR_H */
|