warn on BINDTODEVICE not supported in some modules

This commit is contained in:
van Hauser 2017-07-06 23:02:05 +02:00
commit 789214cc7e

View file

@ -3637,8 +3637,10 @@ int32_t main(int32_t argc, char *argv[]) {
freeaddrinfo(res);
}
// restore device information if present
if (device != NULL)
if (device != NULL) {
*(device - 1) = '%';
fprintf(stderr, "[WARNING] not all modules support BINDTODEVICE for IPv6 link local addresses, e.g. SSH does not\n");
}
}
if (verbose)
printf("[VERBOSE] resolving done\n");