fix ddclient --verbose calling 'p' instead of using $p{foo}

This commit is contained in:
Bodo Eggert 2024-11-17 00:14:25 +01:00
parent e715a6246e
commit 3e51773332

View file

@ -3449,7 +3449,7 @@ sub get_ipv6 {
$ipv6 = get_ip_from_interface($arg, 6); $ipv6 = get_ip_from_interface($arg, 6);
} elsif ($p{'usev6'} eq 'cmdv6' || $p{'usev6'} eq 'cmd') { } elsif ($p{'usev6'} eq 'cmdv6' || $p{'usev6'} eq 'cmd') {
## Obtain IPv6 address by executing the command in "cmdv6=<command>" ## Obtain IPv6 address by executing the command in "cmdv6=<command>"
warning("'--cmd-skip' ignored") if opt('verbose') && p{'cmd-skip'}; warning("'--cmd-skip' ignored") if opt('verbose') && $p{'cmd-skip'};
if ($arg) { if ($arg) {
my $sys_cmd = quotemeta($arg); my $sys_cmd = quotemeta($arg);
$reply = qx{$sys_cmd}; $reply = qx{$sys_cmd};