From ee9ecc75d61dbf90a994252096bf91f3f183bc1e Mon Sep 17 00:00:00 2001 From: wimpunk Date: Mon, 23 Mar 2015 19:03:15 +0000 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. git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@182 3873ddee-7413-0410-b6c4-c2c57c1ab35a --- ddclient | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ddclient b/ddclient index ee21a82..5106528 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);