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