From f2a20c3c39fe3108cec62b651b8e39f0908f5e2a Mon Sep 17 00:00:00 2001
From: Quentin Rameau <quinq@quinq.eu.org>
Date: Sat, 1 Nov 2014 15:37:51 +0100
Subject: [PATCH] added dns prefetching parameter

---
 config.def.h | 1 +
 surf.c       | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/config.def.h b/config.def.h
index 80a0feb..69d9a08 100644
--- a/config.def.h
+++ b/config.def.h
@@ -30,6 +30,7 @@ static Bool enableinspector = TRUE;
 static Bool loadimages = TRUE;
 static Bool hidebackground  = FALSE;
 static Bool allowgeolocation = TRUE;
+static Bool dnsprefetching = FALSE;
 
 #define SETPROP(p, q) { \
 	.v = (char *[]){ "/bin/sh", "-c", \
diff --git a/surf.c b/surf.c
index 6beda59..e5020c9 100644
--- a/surf.c
+++ b/surf.c
@@ -850,6 +850,8 @@ newclient(void) {
 			defaultfontsize, NULL);
 	g_object_set(G_OBJECT(settings), "resizable-text-areas",
 			1, NULL);
+	g_object_set(G_OBJECT(settings), "enable-dns-prefetching",
+			dnsprefetching, NULL);
 
 	/*
 	 * While stupid, CSS specifies that a pixel represents 1/96 of an inch.
-- 
2.1.3

