Apply suggestions from code review
This commit is contained in:
parent
ed14e7689d
commit
c0375cde09
1 changed files with 4 additions and 6 deletions
10
ddclient.in
10
ddclient.in
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue