mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-04-27 04:45:48 +03:00
[PR #50] [MERGED] Properly parse r.RemoteAddr #262
Labels
No labels
Documentation
Documentation
bug
enhancement
feature request
feature request
help wanted
pull-request
question
security
security
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/acme-dns#262
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/acme-dns/acme-dns/pull/50
Author: @joohoi
Created: 3/14/2018
Status: ✅ Merged
Merged: 3/14/2018
Merged by: @joohoi
Base:
master← Head:fix_remoteaddr📝 Commits (3)
709af4aProperly parse r.RemoteAddr1e6793aAdd tests, and fix net.ParseCIDR issues with IPv6 addresses enclosed in brackets000f782Merge branch 'master' into fix_remoteaddr📊 Changes
4 files changed (+48 additions, -3 deletions)
View changed files
📝
acmetxt.go(+2 -2)📝
auth.go(+7 -1)➕
auth_test.go(+33 -0)📝
util.go(+6 -0)📄 Description
RemoteAddr in
http.Requestis in form of HOST:PORT, so the value needed to be split before comparing to the CIDR masks in validation code.Fixes: #45
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.