From 4394c1914feb646366a0b17a2f8637d45be5d200 Mon Sep 17 00:00:00 2001 From: jmdevince Date: Fri, 4 May 2018 10:44:59 -0500 Subject: [PATCH] Follow expected behavior Align ddclient behavior and documentation with namecheap's - https://www.namecheap.com/support/knowledgebase/article.aspx/583/11/how-do-i-configure-ddclient --- ddclient | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ddclient b/ddclient index 6053c1c..00f76b7 100755 --- a/ddclient +++ b/ddclient @@ -3600,14 +3600,14 @@ Configuration variables applicable to the 'namecheap' protocol are: server=fqdn.of.service ## defaults to dynamicdns.park-your-domain.com login=service-login ## login name and password registered with the service password=service-password ## - fully.qualified.host ## the host registered with the service. + hostname ## the hostname to update. Example ${program}.conf file entries: ## single host update protocol=namecheap, \\ login=my-namecheap.com-login, \\ password=my-namecheap.com-password \\ - myhost.namecheap.com + myhost EoEXAMPLE } @@ -3636,9 +3636,7 @@ sub nic_namecheap_update { my $url; $url = "http://$config{$h}{'server'}/update"; my $domain = $config{$h}{'login'}; - my $host = $h; - $host =~ s/(.*)\.$domain(.*)/$1$2/; - $url .= "?host=$host"; + $url .= "?host=$h"; $url .= "&domain=$domain"; $url .= "&password=$config{$h}{'password'}"; $url .= "&ip=";