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; } } }