This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
fidohub/tools/onion.pl

15 lines
239 B
Perl
Executable File

sub on_call
{
if ($config{"tor-proxy"}) {
foreach (split(/;/, $hosts)) {
if ($_ =~ /\.onion\z/) {
$hosts = $_;
$socks = $config{"tor-proxy"};
Log(4, "using tor-proxy $socks for .onion address");
}
}
}
return 1;
}