From 1c2e8c57de529d0fcb92609feeedf5a6c1edaec1 Mon Sep 17 00:00:00 2001 From: Jorj Bauer Date: Fri, 20 Feb 2026 20:45:11 +0000 Subject: [PATCH] bugfix --- bin/add-custom | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/add-custom b/bin/add-custom index 14c3a42..f9b4086 100755 --- a/bin/add-custom +++ b/bin/add-custom @@ -5,11 +5,11 @@ use warnings; use Martnet::DDNS; use Regexp::Common qw/net/; use Getopt::Long qw/GetOptions/; -use JSON::PP qw/encode_json true false/; +use JSON::PP qw/encode_json/; sub usage { - die "Usage: add-custom [--edit] [--enable-dnssec|--disable-dnssec] --master " + - ("") + + die "Usage: add-custom [--edit] [--enable-dnssec|--disable-dnssec] --master " . + ("") . "[--ddns-keyname ...] \n"; } @@ -46,9 +46,9 @@ die "Master must be an IPv4 or IPv6 address\n" my $payload = { master => $master }; if ($enable_dnssec) { - $payload->{dnssec} = true; + $payload->{dnssec} = JSON::PP::true(); } elsif ($disable_dnssec) { - $payload->{dnssec} = false; + $payload->{dnssec} = JSON::PP::false(); } if (@ddns_keynames) {