aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-08-25 12:30:55 +0200
committerlaforge <laforge@osmocom.org>2020-08-25 11:43:02 +0000
commit3119d476034eff13ead05d8320244edc0ad089f2 (patch)
tree6d05cae627eb5ce9755fb41574f24f2c29f48e9d
parent4541cf2b96802a47831a0a5f2180027cdf9c6a7f (diff)
socker: Remove AI_ADDRCONFIG from getaddrinfo flags
The flag was added recently in cd133316cfc735a3006d499dae6b2f693c3c741c, and it is causing issues while running unit tests in environement like OBS where probably there's no non-loopback address configured. Change-Id: I47c31953f1db39fcd2870bde0b984057b8e7b4c4
-rw-r--r--src/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c
index 0b84b99d..1afbe6ef 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -79,7 +79,7 @@ static struct addrinfo *addrinfo_helper(uint16_t family, uint16_t type, uint8_t
hints.ai_socktype = type;
hints.ai_protocol = proto;
}
- hints.ai_flags = AI_ADDRCONFIG;
+
if (passive)
hints.ai_flags |= AI_PASSIVE;