Restore ability to update multiple namecheap domains (#64)
* Revert to previous functionality * Revert example config * Remove redundant commas * Update example conf * Revert whitespace formatting
This commit is contained in:
parent
02c983a991
commit
e910af8bac
2 changed files with 10 additions and 8 deletions
10
ddclient
10
ddclient
|
@ -3600,12 +3600,12 @@ Configuration variables applicable to the 'namecheap' protocol are:
|
||||||
server=fqdn.of.service ## defaults to dynamicdns.park-your-domain.com
|
server=fqdn.of.service ## defaults to dynamicdns.park-your-domain.com
|
||||||
login=service-login ## login name and password registered with the service
|
login=service-login ## login name and password registered with the service
|
||||||
password=service-password ##
|
password=service-password ##
|
||||||
hostname ## the hostname to update.
|
fully.qualified.host ## the hostname to update.
|
||||||
|
|
||||||
Example ${program}.conf file entries:
|
Example ${program}.conf file entries:
|
||||||
## single host update
|
## single host update
|
||||||
protocol=namecheap, \\
|
protocol=namecheap \\
|
||||||
login=my-namecheap.com-login, \\
|
login=my-namecheap.com-login \\
|
||||||
password=my-namecheap.com-password \\
|
password=my-namecheap.com-password \\
|
||||||
myhost
|
myhost
|
||||||
|
|
||||||
|
@ -3637,7 +3637,9 @@ sub nic_namecheap_update {
|
||||||
my $url;
|
my $url;
|
||||||
$url = "https://$config{$h}{'server'}/update";
|
$url = "https://$config{$h}{'server'}/update";
|
||||||
my $domain = $config{$h}{'login'};
|
my $domain = $config{$h}{'login'};
|
||||||
$url .= "?host=$h";
|
my $host = $h;
|
||||||
|
$host =~ s/(.*)\.$domain(.*)/$1$2/;
|
||||||
|
$url .= "?host=$host";
|
||||||
$url .= "&domain=$domain";
|
$url .= "&domain=$domain";
|
||||||
$url .= "&password=$config{$h}{'password'}";
|
$url .= "&password=$config{$h}{'password'}";
|
||||||
$url .= "&ip=";
|
$url .= "&ip=";
|
||||||
|
|
|
@ -161,7 +161,7 @@ ssl=yes # use ssl-support. Works with
|
||||||
# server=dynamicdns.park-your-domain.com, \
|
# server=dynamicdns.park-your-domain.com, \
|
||||||
# login=my-namecheap.com-login, \
|
# login=my-namecheap.com-login, \
|
||||||
# password=my-namecheap.com-password \
|
# password=my-namecheap.com-password \
|
||||||
# myhost.namecheap.com
|
# fully.qualified.host
|
||||||
|
|
||||||
##
|
##
|
||||||
##
|
##
|
||||||
|
|
Loading…
Reference in a new issue