Sfoglia il codice sorgente

Change options to: '-4' => Ipv4 only, '-6' => IPv6 only.

master
Richard Nyberg 16 anni fa
parent
commit
3273c5c1b2
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. +4
    -4
      btpd/main.c

+ 4
- 4
btpd/main.c Vedi File

@@ -104,10 +104,10 @@ usage(void)
"\n" "\n"
"Options:\n" "Options:\n"
"-4\n" "-4\n"
"\tToggle use of IPv4. It's enabled by default.\n"
"\tOnly use IPv4. Both IPv4 and IPv6 are enabled by default.\n"
"\n" "\n"
"-6\n" "-6\n"
"\tToggle use of IPv6. It's enabled by default.\n"
"\tOnly use IPv6. Both IPv4 and IPv6 are enabled by default.\n"
"\n" "\n"
"--bw-in n\n" "--bw-in n\n"
"\tLimit incoming BitTorrent traffic to n kB/s.\n" "\tLimit incoming BitTorrent traffic to n kB/s.\n"
@@ -192,10 +192,10 @@ main(int argc, char **argv)
case -1: case -1:
goto args_done; goto args_done;
case '6': case '6':
net_ipv6 ^= 1;
net_ipv4 = 0;
break; break;
case '4': case '4':
net_ipv4 ^= 1;
net_ipv6 = 0;
break; break;
case 'd': case 'd':
dir = optarg; dir = optarg;


Loading…
Annulla
Salva