mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2026-04-26 16:15:54 +03:00
[PR #199] [CLOSED] WIP: Place brackets around the hostname #202
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
pull-request
question
question
upstream
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nsedit#202
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/tuxis-ie/nsedit/pull/199
Author: @WilliamDEdwards
Created: 3/21/2022
Status: ❌ Closed
Base:
master← Head:fix/brackets-baseurl-ip📝 Commits (3)
ff2a224Place brackets around the hostname6249c09Only add brackets for IPv678afb91Make sure $ip is defined📊 Changes
1 file changed (+7 additions, -1 deletions)
View changed files
📝
includes/class/ApiHandler.php(+7 -1)📄 Description
When setting
$apiipto an IPv6 address, requests to the PowerDNS API fail with cURL error 0 and an emptycurl_error. This is because cURL doesn't understand we're working with an IPv6 address. This should be fixed by placing brackets around the address.This PR is not finished. AFAIK, we don't have to check the address family, because placing brackets around an IPv4 address works. However, we still don't know whether we're dealing with a hostname or not.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.