| 1883 | } |
| 1884 | |
| 1885 | void handle_opts(struct lightningd *ld) |
| 1886 | { |
| 1887 | /* Now we know all the options, finish parsing and finish |
| 1888 | * populating ld->configvars with cmdline. */ |
| 1889 | parse_configvars_final(ld->configvars, true, ld->developer); |
| 1890 | |
| 1891 | /* We keep a separate variable rather than overriding always_use_proxy, |
| 1892 | * so listconfigs shows the correct thing. */ |
| 1893 | if (tal_count(ld->proposed_wireaddr) != 0 |
| 1894 | && all_tor_addresses(ld->proposed_wireaddr)) { |
| 1895 | ld->pure_tor_setup = true; |
| 1896 | if (!ld->proxyaddr) |
| 1897 | log_info(ld->log, "Pure Tor setup with no --proxy:" |
| 1898 | " you won't be able to make connections out"); |
| 1899 | } |
| 1900 | check_config(ld); |
| 1901 | } |
| 1902 | |
| 1903 | /* Canonicalize value they've given */ |
| 1904 | bool opt_canon_bool(const char *val) |
no test coverage detected