mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 03:26:53 +00:00
Keep a count of open WebSockets by ASN region
This commit is contained in:
1 parent
e96149ecf5
commit
11df65b8d8
8 files changed
+50
-7
No files matched your search
@@ -5,6 +5,7 @@
|
||||
package org.whispersystems.websocket;
|
||||
|
||||
import com.google.common.net.HttpHeaders;
|
||||
import java.net.SocketAddress;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.security.SecureRandom;
|
||||
import java.time.Instant;
|
||||
@@ -105,4 +106,8 @@ public class WebSocketClient {
|
||||
private long generateRequestId() {
|
||||
return Math.abs(SECURE_RANDOM.nextLong());
|
||||
}
|
||||
|
||||
public SocketAddress getRemoteAddress() {
|
||||
return session.getRemoteAddress();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user