aboutsummaryrefslogblamecommitdiffstats
path: root/community/uhttpmock/only-listen-on-ipv4.patch
blob: 64a43672fa14fba62e24c4067afc469556555d8d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                                           
Upstream: No
Reason: Docker by default doesn't enable IPv6, so tests using this will fail on
CI and infra.
diff --git a/libuhttpmock/uhm-server.c b/libuhttpmock/uhm-server.c
index 5f59a23..11b113d 100644
--- a/libuhttpmock/uhm-server.c
+++ b/libuhttpmock/uhm-server.c
@@ -1393,7 +1393,7 @@ uhm_server_run (UhmServer *self)
 	g_main_context_push_thread_default (priv->server_context);
 
 	priv->server_main_loop = g_main_loop_new (priv->server_context, FALSE);
-	soup_server_listen_local (priv->server, 0, SOUP_SERVER_LISTEN_HTTPS,
+	soup_server_listen_local (priv->server, 0, SOUP_SERVER_LISTEN_HTTPS | SOUP_SERVER_LISTEN_IPV4_ONLY,
 	                          &error);
 	g_assert_no_error (error);  /* binding to localhost should never really fail */