Skip to content
Snippets Groups Projects
Commit d976a707 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

Security warnings in comments

parent 925bbbc2
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ import java.util.logging.Logger;
* home network) even if one or both machines are connected via a
* <a href="https://en.wikipedia.org/wiki/Virtual_private_network" target="_blank">Virtual Private Network (VPN)</a>.
*
* Privacy note: this sender advertises your user name as part of the multicast packet message
* Privacy warning: this sender advertises your user name as part of the multicast packet message
*
* @author mcgredo
* @author brutzman@nps.edu
......@@ -90,6 +90,7 @@ public class MulticastUdpChatKeyboardSender
byte[] buffer = baos.toByteArray();
DatagramPacket packet = new DatagramPacket(buffer, buffer.length, group/*, DESTINATION_PORT*/);
// Security warning: this application reveals your user name
String userName = System.getProperty("user.name");
String newMessage = new String(); // from user via keyboard
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment