Skip to content

Commit

Permalink
Consistent use of getLocalAddr() without DNS lookups in request adapters
Browse files Browse the repository at this point in the history
Closes gh-28280
  • Loading branch information
jhoeller committed Apr 8, 2022
1 parent 90103b0 commit c3fe112
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -197,7 +197,7 @@ public Principal getPrincipal() {

@Override
public InetSocketAddress getLocalAddress() {
return new InetSocketAddress(this.servletRequest.getLocalName(), this.servletRequest.getLocalPort());
return new InetSocketAddress(this.servletRequest.getLocalAddr(), this.servletRequest.getLocalPort());
}

@Override
Expand Down

0 comments on commit c3fe112

Please sign in to comment.