Skip to content

Commit

Permalink
Merge pull request #496 from hrzlgnm/feat/cleanup-duplicate-branches-…
Browse files Browse the repository at this point in the history
…in-plugins

Remove duplicate branches in request of plugins
  • Loading branch information
troglobit authored Sep 24, 2024
2 parents 46d6ad9 + 781672b commit da1d1af
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions plugins/dnshome.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,6 @@ static ddns_system_t plugin_v6 = {

static int request(ddns_t *ctx, ddns_info_t *info, ddns_alias_t *alias)
{
if (strstr(info->system->name, "ipv6"))
return snprintf(ctx->request_buf, ctx->request_buflen,
info->system->server_req,
info->server_url,
alias->name,
alias->address,
info->server_name.name,
info->creds.encoded_password,
info->user_agent);

return snprintf(ctx->request_buf, ctx->request_buflen,
info->system->server_req,
info->server_url,
Expand Down
10 changes: 0 additions & 10 deletions plugins/ipv64.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,6 @@ static ddns_system_t plugin_v6 = {

static int request(ddns_t *ctx, ddns_info_t *info, ddns_alias_t *alias)
{
if (strstr(info->system->name, "ipv6"))
return snprintf(ctx->request_buf, ctx->request_buflen,
info->system->server_req,
info->server_url,
alias->name,
alias->address,
info->server_name.name,
info->creds.encoded_password,
info->user_agent);

return snprintf(ctx->request_buf, ctx->request_buflen,
info->system->server_req,
info->server_url,
Expand Down

0 comments on commit da1d1af

Please sign in to comment.