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:
parent
98060e2836
commit
7a3d0f99ce
1 changed files with 2 additions and 2 deletions
4
ddclient
4
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);
|
||||
|
|
Loading…
Reference in a new issue