2001-04-24 17:09:53 -04:00
|
|
|
sub checkstunnel {
|
|
|
|
my @paths=("/usr/sbin", "/usr/local/sbin", "/sbin", "/usr/bin",
|
2003-02-03 17:15:33 -05:00
|
|
|
"/usr/local/bin", split(":", $ENV{'PATH'}));
|
2001-04-24 17:09:53 -04:00
|
|
|
for(@paths) {
|
|
|
|
if( -x "$_/stunnel") {
|
|
|
|
return "$_/stunnel";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|