Reverting to the old perl requirements like suggested in #75

The new requirements were added when adding support for cloudflare.  By the
simple fix suggested by Roy Tam we could revert the requirements which make
ddclient back usable on CentOS and RHEL.
This commit is contained in:
Wim Vinckier 2015-05-08 22:04:42 +02:00
parent 98060e2836
commit 7a3d0f99ce

View file

@ -20,7 +20,7 @@
#
#
######################################################################
require 5.014;
require 5.004;
use strict;
use Getopt::Long;
use Sys::Hostname;
@ -4075,7 +4075,7 @@ sub nic_cloudflare_update {
# FQDNs
for my $domain (@hosts) {
my $hostname = $domain =~ s/\.$config{$key}{zone}$//r;
(my $hostname = $domain) =~ s/\.$config{$key}{zone}$//;
delete $config{$domain}{'wantip'};
info("setting IP address to %s for %s", $ip, $domain);