Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GoIP.de support #623

Merged
merged 24 commits into from
Feb 3, 2024
Merged

GoIP.de support #623

merged 24 commits into from
Feb 3, 2024

Conversation

CyberAustin
Copy link
Contributor

Resolves #581

Copy link
Owner

@qdm12 qdm12 left a comment

Choose a reason for hiding this comment

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

Hello, thanks for your contribution 💯

A few comments, especially:

  • fix code formatting (you can use gofmt)
  • change domain -> host, I made code suggestions to do that
  • more robust handling of the status ok case, so it's not tightly coupled with a specific response message that may change in the future.

Thanks!

My release notes are ready, but I'll wait for your PR to get merged first, so it's included in 2.6 😉

docs/goip.md Outdated Show resolved Hide resolved
docs/goip.md Outdated Show resolved Hide resolved
internal/provider/constants/providers.go Outdated Show resolved Hide resolved
docs/goip.md Outdated Show resolved Hide resolved
docs/goip.md Outdated Show resolved Hide resolved
internal/provider/providers/goip/provider.go Outdated Show resolved Hide resolved
internal/provider/providers/goip/provider.go Outdated Show resolved Hide resolved
internal/provider/providers/goip/provider.go Outdated Show resolved Hide resolved
internal/provider/providers/goip/provider.go Outdated Show resolved Hide resolved
internal/provider/providers/goip/provider.go Outdated Show resolved Hide resolved
@qdm12 qdm12 changed the title Added GoIP.de as a providor GoIP.de support Feb 2, 2024
@CyberAustin
Copy link
Contributor Author

K. I'm done fighting the "Markdown/markdown" linter. But I think the code is sound.

Copy link
Owner

@qdm12 qdm12 left a comment

Choose a reason for hiding this comment

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

⚠️ I took the liberty to rebase your branch so the markdown job would no longer fail (see commit cfdc1f3). You'll have to git reset --hard origin/goip.de before doing anything, to be at the tip of the freshly rebased branch.

Now regarding the review 🔍, the two important notes/questions:

  • In the end, we should (almost must) stick to host as suggested before. FQDN does not work with multiple FQDNs unlike host (more repetition for the user) and does not fit with the rest of the code (aka will make my life harder refactoring in the future). So in the code this results in domain = "geoip.de" and host given as input.
  • Does goip.de support ipv6?

docs/goip.md Outdated Show resolved Hide resolved
docs/goip.md Outdated Show resolved Hide resolved
internal/provider/providers/goip/provider.go Show resolved Hide resolved
internal/provider/providers/goip/provider.go Outdated Show resolved Hide resolved
internal/provider/providers/goip/provider.go Outdated Show resolved Hide resolved
internal/provider/provider.go Outdated Show resolved Hide resolved
docs/goip.md Outdated Show resolved Hide resolved
internal/provider/providers/goip/provider.go Show resolved Hide resolved
internal/provider/providers/goip/provider.go Outdated Show resolved Hide resolved
internal/provider/providers/goip/provider.go Outdated Show resolved Hide resolved
@CyberAustin
Copy link
Contributor Author

Finally, everything passes.

- Remove seemingly copy-pasted errors from an irrelevant provider
- No documentation found on status codes, so anything else than 200 is considered a fail
- Change access denied error to wrap sentinel ErrAuth
@qdm12
Copy link
Owner

qdm12 commented Feb 3, 2024

I pushed a few changes/fixes, can you try the image qmcgaw/ddns-updater:goip to check it works fine? Documentation changed, it's now https://github.com/CyberAustin/ddns-updater/blob/goip.de/docs/goip.md (host is your subdomain, domain can be goip.de or goip.it, and defaults to goip.de if left unset)

@qdm12
Copy link
Owner

qdm12 commented Feb 3, 2024

I just tested with the credentials given in the original issue

Username: toYRQs9GMuXdGJD
Password: X7mCzK4dzJur7kr
Subdomain: dns-updater.goip.de

And it works fine 😉 Merging this!

@qdm12 qdm12 merged commit aa12ccc into qdm12:master Feb 3, 2024
7 checks passed
@CyberAustin CyberAustin deleted the goip.de branch February 7, 2024 09:37
@kupernikus87
Copy link

Thx for adding. I deletet the Testlogin, works fine.

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.

Feature request: Goip.de
3 participants