Apache-HTTunnel
view release on metacpan or search on metacpan
Client/httunnel view on Meta::CPAN
-h Prints this usage information.
USAGE
exit(1) ;
}
usage() if (($opts{h})||(! @ARGV[0])) ;
$opts{V} = 2 if $opts{VV} ;
my $DEBUG = $opts{V} || 0 ;
my $SYSLOG = 0 ;
if (($opts{d})&&(Sys::Syslog->can('openlog'))){
Sys::Syslog::setlogsock('unix') ;
Sys::Syslog::openlog('httunnel', 'pid', 'user') or die("Can't open syslog: $!") ;
$SYSLOG = 1 ;
}
my $config = get_conf(@ARGV[0]) ;
my ($select, $listeners) = start_listeners($config) ;
if ($opts{d}){
chdir('/') or sdie("Can't chdir to /: $!") ;
open(STDIN, '</dev/null') or sdie("Can't open /dev/null for reading: $!") ;
( run in 2.312 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )