net/dnscrypt-proxy: Set default provider to cisco, add client key support in config 1610/head
authorDamiano Renfer <damiano.renfer@gmail.com>
Wed, 22 Jul 2015 16:48:18 +0000 (18:48 +0200)
committerDamiano Renfer <damiano.renfer@gmail.com>
Wed, 22 Jul 2015 16:48:18 +0000 (18:48 +0200)
Signed-off-by: Damiano Renfer damiano.renfer@gmail.com
net/dnscrypt-proxy/Makefile
net/dnscrypt-proxy/files/dnscrypt-proxy.config
net/dnscrypt-proxy/files/dnscrypt-proxy.init

index 3fce98d9bba46bf818e2c464d845e1b5831ef3a1..ae7ab88c9ad2237ef37de5abb22c3452a0dc90aa 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dnscrypt-proxy
 PKG_VERSION:=1.6.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://download.dnscrypt.org/dnscrypt-proxy
index 63e0e86b72341fc3dcd7d4b75b7ceedd37a6858d..42e25bfb61d1a22d415320dd1f16503de0488eb8 100644 (file)
@@ -1,6 +1,8 @@
 config dnscrypt-proxy
        option address '127.0.0.1'
        option port '5353'
-       # option resolver 'opendns'
+       # option resolver 'cisco'
        # option resolvers_list '/usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv'
        # option ephemeral_keys '1'
+       # more details at https://github.com/jedisct1/dnscrypt-proxy#public-key-client-authentication
+       # option client_key ''
index 7c9f58db4b024a8db3231959dbec84ccb31882fd..16eaa3a0649ae78be4e812d2f8c0827df7de68c6 100644 (file)
@@ -8,14 +8,16 @@ start_instance () {
        config_get port            "$section" 'port'
        config_get resolver        "$section" 'resolver'
        config_get resolvers_list  "$section" 'resolvers_list'
+       config_get client_key      "$section" 'client_key'
        config_get_bool ephemeral_keys "$section" 'ephemeral_keys'
 
        service_start /usr/sbin/dnscrypt-proxy -d \
                -a ${address}:${port} \
                -u nobody \
                -L ${resolvers_list:-'/usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv'} \
-               -R ${resolver:-'opendns'} \
-               ${ephemeral_keys:+'-E'}
+               -R ${resolver:-'cisco'} \
+               ${ephemeral_keys:+'-E'} \
+               ${client_key:+'--client-key='$client_key}
 }
 
 start() {