domeneshop: Inline an unnecessary variable

This commit is contained in:
Richard Hansen 2024-07-22 22:11:38 -04:00
parent d391f41074
commit 61fff1c344

View file

@ -4313,13 +4313,12 @@ EoEXAMPLE
###################################################################### ######################################################################
sub nic_domeneshop_update { sub nic_domeneshop_update {
debug("\nnic_domeneshop_update -------------------"); debug("\nnic_domeneshop_update -------------------");
my $endpointPath = "/v0/dyndns/update";
for my $h (@_) { for my $h (@_) {
my $ip = delete $config{$h}{'wantip'}; my $ip = delete $config{$h}{'wantip'};
info("$h: Setting IP address to $ip"); info("$h: Setting IP address to $ip");
my $reply = geturl( my $reply = geturl(
proxy => opt('proxy'), proxy => opt('proxy'),
url => "$config{$h}{'server'}$endpointPath?hostname=$h&myip=$ip", url => "$config{$h}{'server'}/v0/dyndns/update?hostname=$h&myip=$ip",
login => $config{$h}{'login'}, login => $config{$h}{'login'},
password => $config{$h}{'password'}, password => $config{$h}{'password'},
); );