You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by "Mike Jennings (JIRA)" <ji...@apache.org> on 2018/04/06 18:20:00 UTC
[jira] [Updated] (VCL-1089) Change ping module to use
Net::Ping::External
[ https://issues.apache.org/jira/browse/VCL-1089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Jennings updated VCL-1089:
-------------------------------
Description:
Currently VCL uses the Net::Ping->new("icmp"); module to ping computers. This module can currently only be run as the root user.
I would suggest that we change the ping module from
my $p = Net::Ping->new("icmp");
my $result = $p->ping($remote_connection_target, 1);
$p->close();
to
use Net::Ping::External qw(ping);
my $result = ping(host => $remote_connection_target, timeout => 1);
This will help allow vcl to be run as a user other than root.
was:
Currently VCL uses the Net::Ping->new("icmp"); module to ping computers. This module can currently only be run as the root user.
I would like to change the the code to use the following
> Change ping module to use Net::Ping::External
> ---------------------------------------------
>
> Key: VCL-1089
> URL: https://issues.apache.org/jira/browse/VCL-1089
> Project: VCL
> Issue Type: Improvement
> Components: vcld (backend)
> Affects Versions: 2.5
> Reporter: Mike Jennings
> Priority: Major
>
> Currently VCL uses the Net::Ping->new("icmp"); module to ping computers. This module can currently only be run as the root user.
> I would suggest that we change the ping module from
> my $p = Net::Ping->new("icmp");
> my $result = $p->ping($remote_connection_target, 1);
> $p->close();
> to
> use Net::Ping::External qw(ping);
> my $result = ping(host => $remote_connection_target, timeout => 1);
>
> This will help allow vcl to be run as a user other than root.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)