Align ddclient behavior and documentation with namecheap's
Follow expected behavior. Applying patch #54 from @jmdevince
This commit is contained in:
commit
3dd2054124
1 changed files with 3 additions and 5 deletions
8
ddclient
8
ddclient
|
@ -3600,14 +3600,14 @@ 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 ##
|
||||||
fully.qualified.host ## the host registered with the service.
|
hostname ## 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.namecheap.com
|
myhost
|
||||||
|
|
||||||
EoEXAMPLE
|
EoEXAMPLE
|
||||||
}
|
}
|
||||||
|
@ -3636,9 +3636,7 @@ sub nic_namecheap_update {
|
||||||
my $url;
|
my $url;
|
||||||
$url = "http://$config{$h}{'server'}/update";
|
$url = "http://$config{$h}{'server'}/update";
|
||||||
my $domain = $config{$h}{'login'};
|
my $domain = $config{$h}{'login'};
|
||||||
my $host = $h;
|
$url .= "?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=";
|
||||||
|
|
Loading…
Reference in a new issue