Skip to content

porkbun: Add missing recap for 'ipv4/ipv6' and 'mtime'#885

Merged
indrajitr merged 1 commit into
ddclient:mainfrom
indrajitr:porkbun-fixes
May 16, 2026
Merged

porkbun: Add missing recap for 'ipv4/ipv6' and 'mtime'#885
indrajitr merged 1 commit into
ddclient:mainfrom
indrajitr:porkbun-fixes

Conversation

@indrajitr
Copy link
Copy Markdown
Member

Add missing recap for 'ipv4/ipv6' and 'mtime' in nic_porkbun_update.

This is necessary to ensure that the cache is properly updated with the latest IP address and modification time.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes Porkbun protocol recap handling so ddclient’s cache reflects the current IP and modification time even when an update is skipped because the record is already correct.

Changes:

  • In nic_porkbun_update, record ipv4/ipv6 and mtime in %recap both when skipping (no change needed) and after a successful update.
  • Document the fix in ChangeLog.md.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
ddclient.in Updates Porkbun NIC logic to always write ipv4/ipv6 and mtime into %recap when the current DNS content matches or after updating.
ChangeLog.md Adds a changelog entry describing the Porkbun recap/mtime fix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ChangeLog.md Outdated
Add missing recap for 'ipv4/ipv6' and 'mtime' in
`nic_porkbun_update`.
This is necessary to ensure that the cache is properly
updated with the latest IP address and modification time.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread ddclient.in
Comment on lines 6895 to 6899
if ($records->[0]{'content'} eq $ip) {
$recap{$h}{"ipv$ipv"} = $ip;
$recap{$h}{'mtime'} = $now;
$recap{$h}{"status-ipv$ipv"} = "good";
success("skipped: IPv$ipv address was already set to $ip");
@indrajitr indrajitr merged commit c9f97dd into ddclient:main May 16, 2026
17 checks passed
@indrajitr indrajitr deleted the porkbun-fixes branch May 16, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants