Skip to content

feat: add IP placeholder support for custom update URL#75

Open
HJS72 wants to merge 7 commits intosimatec:mainfrom
HJS72:feat/custom-url-ip-placeholders
Open

feat: add IP placeholder support for custom update URL#75
HJS72 wants to merge 7 commits intosimatec:mainfrom
HJS72:feat/custom-url-ip-placeholders

Conversation

@HJS72
Copy link
Copy Markdown

@HJS72 HJS72 commented May 4, 2026

Summary

When using the Custom provider, the configured update URL is now sent as-is without any way to include the current IP address. This PR adds placeholder support so users can embed the IP directly in the URL.

Changes

src/main.ts

In both updateDNSv4 and updateDNSv6, the custom case now replaces placeholders before sending the request:

  • {{ipv4}} → current public IPv4 address
  • {{ipv6}} → current public IPv6 address
  • {{ip}} → current IP (IPv4 in the IPv4 update path, IPv6 in the IPv6 update path)

README.md

Documents the three available placeholders and shows an example URL.

Example

https://dynupdate.example.com/update?hostname=myhome.example.com&myip={{ipv4}}&token=abc123

HJS72 added 7 commits May 4, 2026 12:56
In the Custom provider mode, the configured update URL now supports\nplaceholders that are replaced with the current IP at runtime:\n\n- {{ipv4}} → current public IPv4\n- {{ipv6}} → current public IPv6\n- {{ip}}   → current IP (v4 in IPv4 update, v6 in IPv6 update)\n\nDocumented in README.md.
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.

1 participant