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.


git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@182 3873ddee-7413-0410-b6c4-c2c57c1ab35a
This commit is contained in:
wimpunk 2015-03-23 19:03:15 +00:00
parent ba6ec1cb70
commit ee9ecc75d6

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);