File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
tmc-plugin/src/fi/helsinki/cs/tmc/spyware Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
package fi .helsinki .cs .tmc .spyware ;
2
2
3
3
import fi .helsinki .cs .tmc .utilities .JsonMaker ;
4
+ import java .net .InetAddress ;
4
5
import java .net .NetworkInterface ;
5
6
import java .nio .charset .Charset ;
6
7
import java .security .MessageDigest ;
@@ -23,8 +24,6 @@ public class HostInformationGenerator {
23
24
24
25
public String updateHostInformation (EventReceiver receiver ) {
25
26
JsonMaker data = getStaticHostInformation ();
26
- // Should be unique enough not to collapse among singe users machines.
27
-
28
27
29
28
String hostId = trySecureHash (data .toString ());
30
29
@@ -43,7 +42,7 @@ private static JsonMaker getStaticHostInformation() {
43
42
JsonMaker builder = JsonMaker .create ();
44
43
45
44
try {
46
- java . net . InetAddress localMachine = java .net .InetAddress .getLocalHost ();
45
+ InetAddress localMachine = java .net .InetAddress .getLocalHost ();
47
46
builder .add ("hostAddress" , localMachine .getHostAddress ());
48
47
builder .add ("hostName" , localMachine .getHostName ());
49
48
} catch (Exception ex ) {
You can’t perform that action at this time.
0 commit comments