Skip to content

Commit

Permalink
Show warning when using Wi-Fi interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jclehner committed Sep 30, 2024
1 parent 8681520 commit b55f42b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nmrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b55f42b

Please sign in to comment.