Skip to content

Commit d964307

Browse files
committed
Fix WebSocketClient.getRemoteSocketAddress
1 parent 115477e commit d964307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/main/java/org/java_websocket/client/WebSocketClient.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public InetSocketAddress getLocalSocketAddress( WebSocket conn ){
328328
@Override
329329
publicInetSocketAddressgetRemoteSocketAddress( WebSocketconn ){
330330
if( socket != null )
331-
return (InetSocketAddress) socket.getLocalSocketAddress();
331+
return (InetSocketAddress) socket.getRemoteSocketAddress();
332332
returnnull;
333333
}
334334

0 commit comments

Comments
(0)