Apply suggestions from code review

This commit is contained in:
Sandro 2022-12-30 03:16:26 +01:00 committed by GitHub
parent ed14e7689d
commit c0375cde09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4492,13 +4492,13 @@ Configuration variables applicable to the 'domeneshop' api are:
protocol=domeneshop ##
login=token ## api-token
password=secret ## api-secret
your.domain.name ## the host registered with the service.
domain.example.com ## the host registered with the service. ## the host registered with the service.
Example ${program}.conf file entries:
## single host update
protocol=domeneshop
login=djk239023jf
password=32jkl23nkl2rhron89wec89023kewjkoej
login=username
password=your-password
my.example.com
EoEXAMPLE
@ -4522,9 +4522,7 @@ sub nic_domeneshop_update {
# Set the URL that we're going to to update
my $url;
$url = $globals{'ssl'} ? "https://" : "http://";
$url .= "$config{$h}{'server'}$endpointPath";
$url .= "?hostname=$h";
$url .= "&myip=$ip";
$url .= "$config{$h}{'server'}$endpointPath?hostname=$h&myip=$ip";
# Try to get URL
my $reply = geturl(