diff options
Diffstat (limited to 'src/main_gui.cpp')
| -rw-r--r-- | src/main_gui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index deed471..f0fe903 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp | |||
| @@ -143,6 +143,7 @@ static void PrintUsage() | |||
| 143 | printf(" /socks=HOST:PORT (SOCKS5 proxy for Nostr, .btf relay, and onion dials)\n"); | 143 | printf(" /socks=HOST:PORT (SOCKS5 proxy for Nostr, .btf relay, and onion dials)\n"); |
| 144 | printf(" /tor[=HOST:PORT] (Tor mode; default SOCKS5 proxy is 127.0.0.1:9050)\n"); | 144 | printf(" /tor[=HOST:PORT] (Tor mode; default SOCKS5 proxy is 127.0.0.1:9050)\n"); |
| 145 | printf(" /managedtor[=PATH] (start Tor, create a hidden service, advertise its onion)\n"); | 145 | printf(" /managedtor[=PATH] (start Tor, create a hidden service, advertise its onion)\n"); |
| 146 | printf(" /oniononly (do not fall back to rendezvous when a .btf onion dial fails)\n"); | ||
| 146 | printf(" /btfseed=ADDRESS:ENCHEX (extra bootstrap peer, repeatable)\n"); | 147 | printf(" /btfseed=ADDRESS:ENCHEX (extra bootstrap peer, repeatable)\n"); |
| 147 | printf("\n"); | 148 | printf("\n"); |
| 148 | printf("Wallet:\n"); | 149 | printf("Wallet:\n"); |
| @@ -278,6 +279,7 @@ static void ParseStartupArguments(int argc, char* argv[]) | |||
| 278 | string btfConnect = argval2(argc, argv, "/connectbtf", "-connectbtf"); | 279 | string btfConnect = argval2(argc, argv, "/connectbtf", "-connectbtf"); |
| 279 | if (!btfConnect.empty()) | 280 | if (!btfConnect.empty()) |
| 280 | strBtfConnect = btfConnect; | 281 | strBtfConnect = btfConnect; |
| 282 | fBtfOnionOnly = arg(argc, argv, "/oniononly") || arg(argc, argv, "-oniononly"); | ||
| 281 | 283 | ||
| 282 | string rvRelay = argval2(argc, argv, "/rvrelay", "-rvrelay"); | 284 | string rvRelay = argval2(argc, argv, "/rvrelay", "-rvrelay"); |
| 283 | if (!rvRelay.empty()) | 285 | if (!rvRelay.empty()) |
| @@ -360,6 +362,8 @@ static void ParseStartupArguments(int argc, char* argv[]) | |||
| 360 | BtfSocks5ProxyName().c_str()); | 362 | BtfSocks5ProxyName().c_str()); |
| 361 | } | 363 | } |
| 362 | } | 364 | } |
| 365 | if (fBtfOnionOnly && !BtfSocks5ProxyEnabled()) | ||
| 366 | fprintf(stderr, "Warning: /oniononly without /tor, /managedtor, or /socks cannot dial .onion peers\n"); | ||
| 363 | 367 | ||
| 364 | // /btfseed=ADDRESS:ENCHEX -- extra bootstrap peers, repeatable. Useful for | 368 | // /btfseed=ADDRESS:ENCHEX -- extra bootstrap peers, repeatable. Useful for |
| 365 | // testing the seed path and for private networks that ship no compiled list. | 369 | // testing the seed path and for private networks that ship no compiled list. |