Fix: missing JavaDoc comments and parameter tags

This commit is contained in:
MatteoPellegrino05
2026-05-06 18:49:45 +02:00
parent 35654f6823
commit c7d8af48cc
36 changed files with 161 additions and 97 deletions
@@ -170,6 +170,17 @@ public class ClientLauncherTUI {
}
}
/**
* Lets the user choose one of the available active IPv4 network interfaces.
*
* <p>The method lists all active, non-loopback and non-virtual network
* interfaces with an IPv4 address. If only one interface is available, it is
* selected automatically.
*
* @param scanner the scanner used to read the user's choice.
* @return the selected IPv4 address as a string.
* @throws Exception if no valid network interface is available.
*/
public static String chooseNetworkInterface(Scanner scanner) throws Exception {
List<String> ips = new ArrayList<>();