Show warning when using Wi-Fi interfaces

This commit is contained in:
Joseph C. Lehner 2024-09-30 10:02:58 +02:00
parent 8681520963
commit b55f42b764

4
nmrp.c
View file

@ -515,6 +515,10 @@ int nmrp_do(struct nmrpd_args *args)
}
}
if (ethsock_is_wifi(sock)) {
printf("Warning: using a Wi-Fi interface. Make sure you know what you're doing!\n");
}
if (!autoip) {
status = is_valid_ip(sock, &ipaddr, &ipmask);
if (status <= 0) {