mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-07-29 00:52:37 -04:00
[PR #773] [MERGED] Provider Porkbun: Fix wildcard domain modifications #837
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/qdm12/ddns-updater/pull/773
Author: @bentemple
Created: 7/25/2024
Status: ✅ Merged
Merged: 8/7/2024
Merged by: @qdm12
Base:
master← Head:ben.temple/fix-porkbun-any-handling-1📝 Commits (1)
e00b1c7Provider Porkbun: Fix wildcard domain modifications📊 Changes
1 file changed (+18 additions, -10 deletions)
View changed files
📝
internal/provider/providers/porkbun/api.go(+18 -10)📄 Description
Description
Porkbun does not properly handle wildcard domains with an HTML encoded
*. By default the URL is encoded, and*becomes%2Awhich then causes Porkbun to not return the correct DNS entry for*.domain.comresulting in duplicate*.domain.comDNS entries and other unwanted behavior. This updates the logic to append the domain owner (subdomain) to the url after HTML encoding it, preventing the '*' or any other subdomain characters from being HTML encoded.Test-Plan
Setup several domains with
*.domain.tldanddomain.tlddnsAentries.Set the values for some dns
Aentries to127.0.0.1Verified that DDNS-Updater was able to correctly update all entries with the invalid IP address set.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.