about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2009-01-26 18:54:58 +0100
committerRichard Nyberg <rnyberg@murmeldjur.se>2009-01-26 22:15:10 +0100
commit3273c5c1b233bd34daca1fff603da70bc5db6441 (patch)
tree8ad1ea83bd43ee90f5ccafb2f59ae6e41b751875
parent5aaf5be2ef3f112411e7fc9a4647df66f08b1861 (diff)
downloadbtpd-3273c5c1b233bd34daca1fff603da70bc5db6441.tar.gz
btpd-3273c5c1b233bd34daca1fff603da70bc5db6441.zip
Change options to: '-4' => Ipv4 only, '-6' => IPv6 only.
-rw-r--r--btpd/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/btpd/main.c b/btpd/main.c
index c3cd395..c31fa53 100644
--- a/btpd/main.c
+++ b/btpd/main.c
@@ -104,10 +104,10 @@ usage(void)
         "\n"
         "Options:\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"
         "-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"
         "--bw-in n\n"
         "\tLimit incoming BitTorrent traffic to n kB/s.\n"
@@ -192,10 +192,10 @@ main(int argc, char **argv)
         case -1:
             goto args_done;
         case '6':
-            net_ipv6 ^= 1;
+            net_ipv4 = 0;
             break;
         case '4':
-            net_ipv4 ^= 1;
+            net_ipv6 = 0;
             break;
         case 'd':
             dir = optarg;