15 lines
239 B
Perl
Executable File
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;
|
|
}
|