| 1923 | } |
| 1924 | |
| 1925 | void handle_opts(struct lightningd *ld) |
| 1926 | { |
| 1927 | /* Now we know all the options, finish parsing and finish |
| 1928 | * populating ld->configvars with cmdline. */ |
| 1929 | parse_configvars_final(ld->configvars, true, ld->developer); |
| 1930 | |
| 1931 | /* We keep a separate variable rather than overriding always_use_proxy, |
| 1932 | * so listconfigs shows the correct thing. */ |
| 1933 | if (tal_count(ld->proposed_wireaddr) != 0 |
| 1934 | && all_tor_addresses(ld->proposed_wireaddr)) { |
| 1935 | ld->pure_tor_setup = true; |
| 1936 | if (!ld->proxyaddr) |
| 1937 | log_info(ld->log, "Pure Tor setup with no --proxy:" |
| 1938 | " you won't be able to make connections out"); |
| 1939 | } |
| 1940 | check_config(ld); |
| 1941 | } |
| 1942 | |
| 1943 | /* Canonicalize value they've given */ |
| 1944 | bool opt_canon_bool(const char *val) |
no test coverage detected