Show warning when using Wi-Fi interfaces
This commit is contained in:
parent
8681520963
commit
b55f42b764
1 changed files with 4 additions and 0 deletions
4
nmrp.c
4
nmrp.c
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue