We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90103b0 commit c3fe112Copy full SHA for c3fe112
spring-web/src/main/java/org/springframework/http/server/ServletServerHttpRequest.java
@@ -197,7 +197,7 @@ public Principal getPrincipal() {
197
198
@Override
199
public InetSocketAddress getLocalAddress() {
200
- return new InetSocketAddress(this.servletRequest.getLocalName(), this.servletRequest.getLocalPort());
+ return new InetSocketAddress(this.servletRequest.getLocalAddr(), this.servletRequest.getLocalPort());
201
}
202
203
0 commit comments