Skip to content

Commit

Permalink
frontend: fix handling of SRR requests over IPv6
Browse files Browse the repository at this point in the history
use appropriate InetAddresses#forUriString when processing URL.

Ticket: #10243, #10225
Acked-by: Lea Morschel
Target: master, 7.2, 7.1, 7.0, 6.2
Require-book: no
Require-notes: yes
(cherry picked from commit cbb2c8e)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
  • Loading branch information
kofemann authored and mksahakyan committed Nov 26, 2021
1 parent 94d1af2 commit d4b48a7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -115,7 +115,7 @@ public void setGroupMapping(String mapping) {
@Path("/")
public Response getSrr() throws InterruptedException, CacheException, NoRouteToCellException {

InetAddress remoteAddress = InetAddresses.forString(request.getRemoteAddr());
InetAddress remoteAddress = InetAddresses.forUriString(request.getRemoteAddr());
if (!remoteAddress.isLoopbackAddress()) {
throw new ForbiddenException();
}
Expand Down

0 comments on commit d4b48a7

Please sign in to comment.