commit 9e3f07eb65c6fd27659350bd84da225b74ba8ace
parent 50bc46c76028d8c01b6be32d47825a1ef5fbe6cb
Author: sin <sin@2f30.org>
Date: Wed, 23 Mar 2016 14:21:16 +0000
sync
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/stun.8 b/stun.8
@@ -41,7 +41,7 @@ Connect to specified
.It Fl t Ar type
Select the tunnel device
.Ar type .
-The two available device types are 'tun' and 'tap'. The default is 'tun'.
+The two available device types are TUN and TAP. The default is TUN.
.El
.Sh AUTHORS
.An Dimitris Papastamos Aq Mt sin@2f30.org
diff --git a/stun.c b/stun.c
@@ -660,9 +660,9 @@ main(int argc, char *argv[])
break;
case 't':
arg = EARGF(usage());
- if (!strcmp(arg, "tun"))
+ if (!strcasecmp(arg, "tun"))
devtype = TUNDEV;
- else if (!strcmp(arg, "tap"))
+ else if (!strcasecmp(arg, "tap"))
devtype = TAPDEV;
else
usage();