Browse Source

small log fix

Lars Pandikow 10 years ago
parent
commit
7b3cfc0503
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/de/tudarmstadt/informatik/hostage/Handler.java

+ 3 - 3
src/de/tudarmstadt/informatik/hostage/Handler.java

@@ -116,7 +116,7 @@ public class Handler implements Runnable {
 			intent.setAction(TracingSyncService.ACTION_START_SYNC);
 			service.startService(intent);
 		}
-		//TODO kann ConcurrentModificationException auslösen, da über collection iteriert wird während elemente entfernt werden
+		//TODO kann ConcurrentModificationException ausl�sen, da �ber collection iteriert wird w�hrend elemente entfernt werden
 		listener.refreshHandlers();
 	}
 
@@ -201,7 +201,7 @@ public class Handler implements Runnable {
 		record.setProtocol(protocol.toString());
 		record.setExternalIP(externalIP);
 		record.setLocalIP(client.getLocalAddress().getHostAddress());
-		record.setLocalPort(protocol.getPort());
+		record.setLocalPort(client.getLocalPort());
 		record.setRemoteIP(client.getInetAddress().getHostAddress());
 		record.setRemotePort(client.getPort());
 		record.setBssid(BSSID);
@@ -264,7 +264,7 @@ public class Handler implements Runnable {
 		}
 		while (!thread.isInterrupted() && (inputLine = reader.read()) != null) {
 			outputLine = protocol.processMessage(inputLine);
-			Logger.log(Hostage.getContext(), createMessageRecord(TYPE.RECEIVE, inputLine.toString()));
+			log(TYPE.RECEIVE, inputLine.toString());
 			if (outputLine != null) {
 				writer.write(outputLine);
 				for (Packet o : outputLine) {