mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 10:38:41 -04:00
[PR #512] [MERGED] Include ipversion in string representation of all providers #721
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/512
Author: @felixwrt
Created: 8/3/2023
Status: ✅ Merged
Merged: 8/8/2023
Merged by: @qdm12
Base:
master← Head:strato_ipversion📝 Commits (2)
fc8e3f9Include ipversion in string representation of Strato Providerbecdbc8Useutils.ToStringfor all providers📊 Changes
11 files changed (+14 additions, -11 deletions)
View changed files
📝
internal/provider/providers/desec/provider.go(+1 -1)📝
internal/provider/providers/dyn/provider.go(+1 -1)📝
internal/provider/providers/dynv6/provider.go(+2 -1)📝
internal/provider/providers/inwx/provider.go(+2 -1)📝
internal/provider/providers/opendns/provider.go(+2 -1)📝
internal/provider/providers/ovh/provider.go(+1 -1)📝
internal/provider/providers/porkbun/provider.go(+1 -1)📝
internal/provider/providers/selfhostde/provider.go(+1 -1)📝
internal/provider/providers/spdyn/provider.go(+1 -1)📝
internal/provider/providers/strato/provider.go(+1 -1)📝
internal/provider/providers/variomedia/provider.go(+1 -1)📄 Description
I'm using two providers (cloudflare and strato) and noticed that for strato, the logs don't show the configured IP version(s). This PR changes the string representation of the Strato provider to include the ip version:
Before:
After:
I noticed that out of the 40 providers 30 use
utils.ToStringand 10 (still?) usefmt.Sprintf("[domain: %s .... I can change the remaining 9 as well if you want.Let me know what you think.
BTW: This is the first time I've worked with Go and the Devcontainer made it super easy to get started. Thanks for providing that, it makes a big difference in the required effort to get set up!
Edit: Changed the string representation of all providers to include the ipversion
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.