From c53054ec0a8b6e03467274035626b6164af34a1f Mon Sep 17 00:00:00 2001 From: James Laird Date: Tue, 2 Apr 2013 21:38:02 +1100 Subject: [PATCH] use AI_ADDRCONFIG with getaddrinfo() Fixes IPv4 systems with IPv6 present but disabled. Fix courtesy of Quentin Smart (sm3rt) --- rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtsp.c b/rtsp.c index 0a281fad..e5c7202d 100644 --- a/rtsp.c +++ b/rtsp.c @@ -675,7 +675,7 @@ void rtsp_listen_loop(void) { memset(&hints, 0, sizeof(hints)); hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; - hints.ai_flags = AI_PASSIVE; + hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG; snprintf(portstr, 6, "%d", config.port);