Formatting: Indent multi-line prints less
This commit is contained in:
parent
4b3d6e2962
commit
cc51ee6f02
|
@ -70,7 +70,8 @@ static inline void help(FILE * stream, bool verbose) __attribute__((noreturn));
|
||||||
|
|
||||||
static void help(FILE *stream, bool verbose)
|
static void help(FILE *stream, bool verbose)
|
||||||
{
|
{
|
||||||
fprintf(stream, "iodine IP over DNS tunneling client\n\n"
|
fprintf(stream,
|
||||||
|
"iodine IP over DNS tunneling client\n\n"
|
||||||
"Usage: %s [-46fhrv] [-u user] [-t chrootdir] [-d device] [-P password]\n"
|
"Usage: %s [-46fhrv] [-u user] [-t chrootdir] [-d device] [-P password]\n"
|
||||||
" [-m maxfragsize] [-M maxlen] [-T type] [-O enc] [-L 0|1] [-I sec]\n"
|
" [-m maxfragsize] [-M maxlen] [-T type] [-O enc] [-L 0|1] [-I sec]\n"
|
||||||
" [-z context] [-F pidfile] [nameserver] topdomain\n", __progname);
|
" [-z context] [-F pidfile] [nameserver] topdomain\n", __progname);
|
||||||
|
@ -78,7 +79,8 @@ static void help(FILE *stream, bool verbose)
|
||||||
if (!verbose)
|
if (!verbose)
|
||||||
exit(2);
|
exit(2);
|
||||||
|
|
||||||
fprintf(stream, "\nOptions to try if connection doesn't work:\n"
|
fprintf(stream,
|
||||||
|
"\nOptions to try if connection doesn't work:\n"
|
||||||
" -4 to connect only to IPv4\n"
|
" -4 to connect only to IPv4\n"
|
||||||
" -6 to connect only to IPv6\n"
|
" -6 to connect only to IPv6\n"
|
||||||
" -T force dns type: NULL, PRIVATE, TXT, SRV, MX, CNAME, A (default: autodetect)\n"
|
" -T force dns type: NULL, PRIVATE, TXT, SRV, MX, CNAME, A (default: autodetect)\n"
|
||||||
|
|
|
@ -2294,7 +2294,8 @@ write_dns(int fd, struct query *q, const char *data, int datalen, char downenc)
|
||||||
|
|
||||||
static void print_usage(FILE *stream)
|
static void print_usage(FILE *stream)
|
||||||
{
|
{
|
||||||
fprintf(stream, "Usage: %s [-46cDfsv] [-u user] [-t chrootdir] [-d device] [-m mtu]\n"
|
fprintf(stream,
|
||||||
|
"Usage: %s [-46cDfsv] [-u user] [-t chrootdir] [-d device] [-m mtu]\n"
|
||||||
" [-z context] [-l ipv4 listen address] [-L ipv6 listen address]\n"
|
" [-z context] [-l ipv4 listen address] [-L ipv6 listen address]\n"
|
||||||
" [-p port] [-n auto|external_ip] [-b dnsport] [-P password]\n"
|
" [-p port] [-n auto|external_ip] [-b dnsport] [-P password]\n"
|
||||||
" [-F pidfile] [-i max idle time] tunnel_ip[/netmask] topdomain\n",
|
" [-F pidfile] [-i max idle time] tunnel_ip[/netmask] topdomain\n",
|
||||||
|
@ -2311,7 +2312,8 @@ static void help(FILE *stream)
|
||||||
{
|
{
|
||||||
fprintf(stream, "iodine IP over DNS tunneling server\n\n");
|
fprintf(stream, "iodine IP over DNS tunneling server\n\n");
|
||||||
print_usage(stream);
|
print_usage(stream);
|
||||||
fprintf(stream, "\nAvailable options:\n"
|
fprintf(stream,
|
||||||
|
"\nAvailable options:\n"
|
||||||
" -v to print version info and exit\n"
|
" -v to print version info and exit\n"
|
||||||
" -h to print this help and exit\n"
|
" -h to print this help and exit\n"
|
||||||
" -4 to listen only on IPv4\n"
|
" -4 to listen only on IPv4\n"
|
||||||
|
@ -2347,7 +2349,8 @@ static void help(FILE *stream)
|
||||||
|
|
||||||
static void version(void)
|
static void version(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "iodine IP over DNS tunneling server\n"
|
fprintf(stderr,
|
||||||
|
"iodine IP over DNS tunneling server\n"
|
||||||
"Git version: %s\n", GITREVISION);
|
"Git version: %s\n", GITREVISION);
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
Loading…
Reference in New Issue