From 59b92d0bc1da9e725e0b76c459fb5e925bf23ce5 Mon Sep 17 00:00:00 2001 From: "[Thomas Green]" Date: Mon, 17 Jun 2024 15:52:00 +0200 Subject: [PATCH] Set default value of properties 'resolver.source{4,6}' in Profile.pm --- lib/Zonemaster/Engine/Profile.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Zonemaster/Engine/Profile.pm b/lib/Zonemaster/Engine/Profile.pm index 1b76a61c9..13af1fa18 100644 --- a/lib/Zonemaster/Engine/Profile.pm +++ b/lib/Zonemaster/Engine/Profile.pm @@ -85,7 +85,8 @@ my %profile_properties_details = ( unless ( $_[0] eq '' or validate_ipv4( $_[0] ) ) { die "Property resolver.source4 must be a valid IPv4 address"; } - } + }, + default => q{} }, q{resolver.source6} => { type => q{Str}, @@ -93,7 +94,8 @@ my %profile_properties_details = ( unless ( $_[0] eq '' or validate_ipv6( $_[0] ) ) { die "Property resolver.source6 must be a valid IPv6 address"; } - } + }, + default => q{} }, q{net.ipv4} => { type => q{Bool}