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 11package fi .helsinki .cs .tmc .spyware ;
22
33import fi .helsinki .cs .tmc .utilities .JsonMaker ;
4+ import java .net .InetAddress ;
45import java .net .NetworkInterface ;
56import java .nio .charset .Charset ;
67import java .security .MessageDigest ;
@@ -23,8 +24,6 @@ public class HostInformationGenerator {
2324
2425 public String updateHostInformation (EventReceiver receiver ) {
2526 JsonMaker data = getStaticHostInformation ();
26- // Should be unique enough not to collapse among singe users machines.
27-
2827
2928 String hostId = trySecureHash (data .toString ());
3029
@@ -43,7 +42,7 @@ private static JsonMaker getStaticHostInformation() {
4342 JsonMaker builder = JsonMaker .create ();
4443
4544 try {
46- java . net . InetAddress localMachine = java .net .InetAddress .getLocalHost ();
45+ InetAddress localMachine = java .net .InetAddress .getLocalHost ();
4746 builder .add ("hostAddress" , localMachine .getHostAddress ());
4847 builder .add ("hostName" , localMachine .getHostName ());
4948 } catch (Exception ex ) {
You can’t perform that action at this time.
0 commit comments