mirror of
https://github.com/moparisthebest/curl
synced 2024-11-08 18:45:05 -05:00
12 lines
251 B
Perl
12 lines
251 B
Perl
sub checkstunnel {
|
|
my @paths=("/usr/sbin", "/usr/local/sbin", "/sbin", "/usr/bin",
|
|
"/usr/local/bin", split(":", $ENV{'PATH'}));
|
|
for(@paths) {
|
|
if( -x "$_/stunnel") {
|
|
return "$_/stunnel";
|
|
}
|
|
}
|
|
}
|
|
|
|
1;
|