From 7a3d0f99ce6fcb78856e4734e2c7ed2d6f7c668d Mon Sep 17 00:00:00 2001 From: Wim Vinckier Date: Fri, 8 May 2015 22:04:42 +0200 Subject: [PATCH] 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. --- ddclient | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ddclient b/ddclient index 330557c..5862d3f 100755 --- a/ddclient +++ b/ddclient @@ -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);