From 10294f3ceb229040379335dc49f10ac362e1dc45 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Wed, 9 Jun 2010 14:49:48 +0200 Subject: [PATCH] fix bad guess of ip addresses with getifaddrs() (ipv6) --- coreapi/misc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreapi/misc.c b/coreapi/misc.c index 55aa83d4d..58f325d94 100644 --- a/coreapi/misc.c +++ b/coreapi/misc.c @@ -683,6 +683,7 @@ static int get_local_ip_with_getifaddrs(int type, char *address, int size) if (strchr(address, '%') == NULL) { /*avoid ipv6 link-local addresses */ /*ms_message("getifaddrs() found %s",address);*/ ret++; + break; } } }