|
@ -17,6 +17,7 @@ import java.io.IOException;
|
|
|
import java.net.InetAddress;
|
|
|
import java.net.Socket;
|
|
|
import java.net.URI;
|
|
|
import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
|
|
@ -47,7 +48,7 @@ public class SocketClient {
|
|
|
String completeAddress = hostAddress + ":" + clientPort;
|
|
|
Map<String, String> httpHeaders = new HashMap<>();
|
|
|
httpHeaders.put("address", completeAddress);
|
|
|
httpHeaders.put("id", MD5.GetMD5Code(completeAddress));
|
|
|
httpHeaders.put("id", MD5.GetMD5Code(completeAddress+new Date().getTime()));
|
|
|
|
|
|
|
|
|
client = new WebSocketClient(
|