Skip to content

Commit 7c3b223

Browse files
committed
Merge pull request TooTallNate#214 from directi/master
Fix WebSocketClient.getRemoteSocketAddress
2 parents 115477e + d964307 commit 7c3b223

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
public InetSocketAddress getRemoteSocketAddress( WebSocket conn ) {
330330
if( socket != null )
331-
return (InetSocketAddress) socket.getLocalSocketAddress();
331+
return (InetSocketAddress) socket.getRemoteSocketAddress();
332332
return null;
333333
}
334334

0 commit comments

Comments
 (0)