[PR #2] [MERGED] Fix register omitting -allow causing 400 invalid_allowfrom_cidr #19

Closed
opened 2026-03-13 16:27:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/acme-dns/acme-dns-client/pull/2
Author: @JonathanGawrych
Created: 2/15/2021
Status: Merged
Merged: 2/16/2021
Merged by: @joohoi

Base: masterHead: jag/fix-empty-allow-from


📝 Commits (1)

  • e17ad9a Fix register omitting -allow causing 400 invalid_allowfrom_cidr

📊 Changes

1 file changed (+4 additions, -1 deletions)

View changed files

📝 pkg/client/register.go (+4 -1)

📄 Description

If you attempt to register to joohoi/acme-dns server without specifying an allow flag, the request sent to the server is an array containing the empty string [""], which responds with 400 invalid_allowfrom_cidr. Instead, this fix makes omitting allow send an empty array [] which allows registration to work correctly.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/acme-dns/acme-dns-client/pull/2 **Author:** [@JonathanGawrych](https://github.com/JonathanGawrych) **Created:** 2/15/2021 **Status:** ✅ Merged **Merged:** 2/16/2021 **Merged by:** [@joohoi](https://github.com/joohoi) **Base:** `master` ← **Head:** `jag/fix-empty-allow-from` --- ### 📝 Commits (1) - [`e17ad9a`](https://github.com/acme-dns/acme-dns-client/commit/e17ad9a153cf34dbd972d9d59f41294fb296070d) Fix register omitting -allow causing 400 invalid_allowfrom_cidr ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `pkg/client/register.go` (+4 -1) </details> ### 📄 Description If you attempt to register to joohoi/acme-dns server without specifying an allow flag, the request sent to the server is an array containing the empty string `[""]`, which responds with 400 `invalid_allowfrom_cidr`. Instead, this fix makes omitting allow send an empty array `[]` which allows registration to work correctly. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-13 16:27:07 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/acme-dns-client#19
No description provided.