Package: 6tunnel
Version: 0.11rc2-2
from 6tunnel(1):
-f Force tunneling even if remote host is not resolvable at the execution
time.
But 6tunnel fails with no error message:
$ 6tunnel -f -l 127.0.0.1 1119 somehost.somedomain 119
$ echo $?
1
The getopt() call in 6tunnel.c:main() searches for an -f option
("1dv46fs:l:I:i:hu:m:L:A:p:"), but the following switch/case tests for
the 'r' char instead the 'f'.
Since the option "-r" is not found in the manpage or the rest of the code,
the attached patch changes the switch/case from 'r' to 'f'.
With that patch applied, 6tunnel will start with the -f option:
$ 6tunnel -f -l 127.0.0.1 1119 somehost.somedomain 119
$ echo $?
0
Regards
Olaf Rempel
--- 6tunnel-0.11rc2/6tunnel.c.org 2005-08-18 19:02:50.000000000 +0200
+++ 6tunnel-0.11rc2/6tunnel.c 2008-10-11 14:34:34.000000000 +0200
@@ -538,7 +538,7 @@
case 'l':
bind_host = xstrdup(optarg);
break;
- case 'r':
+ case 'f':
force = 1;
break;
case 'i':