NAME
Mojo::IOLoop::Client::Paranoid - paranoid IOLoop proxy
SYNOPSIS
my $user_client = Mojo::IOLoop::Client::Paranoid->new(
paranoid_dns => Net::DNS::Paranoid->new(
blocked_hosts => [qr{\.dev.example\.com$}]
),
);
$user_client->connect($host); # will not connect to internal hosts
METHODS
->new
my $client = Mojo::IOLoop::Client::Paranoid->new(
paranoid_dns => Net::DNS::Paranoid->new(...),
)
Creates a new paranoid client. The ->connect method will check that the given hostname does not resolve to any internal or blacklisted IP address. See Net::DNS::Paranoid for how to configure the white- and blacklists.