Browse Source

net/dnscrypt-proxy: Set default provider to cisco, add client key support in config

Signed-off-by: Damiano Renfer damiano.renfer@gmail.com
Damiano Renfer 9 years ago
parent
commit
1163af8bcb

+ 1
- 1
net/dnscrypt-proxy/Makefile View File

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
9 9
 
10 10
 PKG_NAME:=dnscrypt-proxy
11 11
 PKG_VERSION:=1.6.0
12
-PKG_RELEASE:=1
12
+PKG_RELEASE:=2
13 13
 
14 14
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 15
 PKG_SOURCE_URL:=http://download.dnscrypt.org/dnscrypt-proxy

+ 3
- 1
net/dnscrypt-proxy/files/dnscrypt-proxy.config View File

@@ -1,6 +1,8 @@
1 1
 config dnscrypt-proxy
2 2
 	option address '127.0.0.1'
3 3
 	option port '5353'
4
-	# option resolver 'opendns'
4
+	# option resolver 'cisco'
5 5
 	# option resolvers_list '/usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv'
6 6
 	# option ephemeral_keys '1'
7
+	# more details at https://github.com/jedisct1/dnscrypt-proxy#public-key-client-authentication
8
+	# option client_key ''

+ 4
- 2
net/dnscrypt-proxy/files/dnscrypt-proxy.init View File

@@ -8,14 +8,16 @@ start_instance () {
8 8
 	config_get port            "$section" 'port'
9 9
 	config_get resolver        "$section" 'resolver'
10 10
 	config_get resolvers_list  "$section" 'resolvers_list'
11
+	config_get client_key      "$section" 'client_key'
11 12
 	config_get_bool ephemeral_keys "$section" 'ephemeral_keys'
12 13
 
13 14
 	service_start /usr/sbin/dnscrypt-proxy -d \
14 15
 		-a ${address}:${port} \
15 16
 		-u nobody \
16 17
 		-L ${resolvers_list:-'/usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv'} \
17
-		-R ${resolver:-'opendns'} \
18
-		${ephemeral_keys:+'-E'}
18
+		-R ${resolver:-'cisco'} \
19
+		${ephemeral_keys:+'-E'} \
20
+		${client_key:+'--client-key='$client_key}
19 21
 }
20 22
 
21 23
 start() {