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 de4507e commit bd36c52Copy full SHA for bd36c52
src/main/java/org/java_websocket/server/WebSocketServer.java
@@ -581,7 +581,7 @@ public InetSocketAddress getLocalSocketAddress( WebSocket conn ) {
581
582
@Override
583
public InetSocketAddress getRemoteSocketAddress( WebSocket conn ) {
584
- return (InetSocketAddress) getSocket( conn ).getLocalSocketAddress();
+ return (InetSocketAddress) getSocket( conn ).getRemoteSocketAddress();
585
}
586
587
/** Called after an opening handshake has been performed and the given websocket is ready to be written on. */
0 commit comments