show device on IPv6 LL addresses

This commit is contained in:
van Hauser 2017-07-06 21:29:59 +02:00
commit 6445689545
2 changed files with 5 additions and 1 deletions

View file

@ -3564,9 +3564,9 @@ int32_t main(int32_t argc, char *argv[]) {
ipv4 = NULL;
#ifdef AF_INET6
ipv6 = NULL;
#endif
if ((device = index(hydra_targets[i]->target, '%')) != NULL)
*device++ = 0;
#endif
if (getaddrinfo(hydra_targets[i]->target, NULL, &hints, &res) != 0) {
if (use_proxy == 0) {
if (verbose)