summaryrefslogtreecommitdiff
path: root/src/http.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-16 05:09:45 -0800
committerStefano Karapetsas <[email protected]>2012-11-16 05:09:45 -0800
commitbc18e5b352952b6365e5dff9de0f02f03f8efb13 (patch)
tree75c1b70532853914102d5272de8dacc61342c5a5 /src/http.c
parent85ab680ab5b17c84c3b62c59e830e532b03df09a (diff)
parent2a7396735127cf392c93bd74a4e39c2f65bf1ded (diff)
downloadmate-user-share-bc18e5b352952b6365e5dff9de0f02f03f8efb13.tar.bz2
mate-user-share-bc18e5b352952b6365e5dff9de0f02f03f8efb13.tar.xz
Merge pull request #5 from jasmineaura/develop
improve the sharebar, make it an GtkInfoBar, and some fixes
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));