summaryrefslogtreecommitdiff
path: root/src/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http.c')
-rw-r--r--src/http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http.c b/src/http.c
index 1dff01d..c07a202 100644
--- a/src/http.c
+++ b/src/http.c
@@ -79,6 +79,7 @@ get_port (void)
memset (&addr, 0, sizeof (addr));
addr.sin_port = 0;
addr.sin_addr.s_addr = INADDR_ANY;
+ addr.sin_family = AF_INET;
reuse = 1;
setsockopt (sock, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof (reuse));