Merge branch 'master' of https://github.com/wimpunk/ddclient
This commit is contained in:
commit
354c72e8df
1 changed files with 1 additions and 5 deletions
6
ddclient
6
ddclient
|
@ -1895,7 +1895,7 @@ sub geturl {
|
||||||
$request .= "/$url HTTP/1.0\n";
|
$request .= "/$url HTTP/1.0\n";
|
||||||
$request .= "Host: $server\n";
|
$request .= "Host: $server\n";
|
||||||
|
|
||||||
my $auth = encode_base64("${login}:${password}");
|
my $auth = encode_base64("${login}:${password}", "");
|
||||||
$request .= "Authorization: Basic $auth\n" if $login || $password;
|
$request .= "Authorization: Basic $auth\n" if $login || $password;
|
||||||
$request .= "User-Agent: ${program}/${version}\n";
|
$request .= "User-Agent: ${program}/${version}\n";
|
||||||
$request .= "Connection: close\n";
|
$request .= "Connection: close\n";
|
||||||
|
@ -2623,10 +2623,6 @@ sub nic_noip_update {
|
||||||
$url .= "&myip=";
|
$url .= "&myip=";
|
||||||
$url .= $ip if $ip;
|
$url .= $ip if $ip;
|
||||||
|
|
||||||
|
|
||||||
print "here..." . $config{$h}{'login'} . " --> " . $config{$h}{'password'} . "\n";
|
|
||||||
|
|
||||||
|
|
||||||
my $reply = geturl(opt('proxy'), $url, $config{$h}{'login'}, $config{$h}{'password'});
|
my $reply = geturl(opt('proxy'), $url, $config{$h}{'login'}, $config{$h}{'password'});
|
||||||
if (!defined($reply) || !$reply) {
|
if (!defined($reply) || !$reply) {
|
||||||
failed("updating %s: Could not connect to %s.", $hosts, $config{$h}{'server'});
|
failed("updating %s: Could not connect to %s.", $hosts, $config{$h}{'server'});
|
||||||
|
|
Loading…
Reference in a new issue