bitflicker64 opened a new pull request, #2962: URL: https://github.com/apache/hugegraph/pull/2962
## Purpose of the PR - fix #2960 `IpAuthHandler` only compared the client IP with the allowlist entries directly. When the allowlist contains hostnames, connections from their resolved IPs could be rejected. ## Main Changes - Resolve hostname allowlist entries using `InetAddress.getAllByName` - Store resolved addresses in a set used for connection validation - Keep runtime validation as a simple `Set.contains()` lookup ## Verifying these changes - [x] Trivial rework / code cleanup without any test coverage. (No Need) ## Does this PR potentially affect the following parts? - [ ] Dependencies - [ ] Modify configurations - [ ] The public API - [ ] Other affects - [x] Nope ## Documentation Status - [ ] `Doc - TODO` - [ ] `Doc - Done` - [x] `Doc - No Need` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
