dnscrypt-proxy: add support for -E/--ephemeral-keys option. 1547/head
authorAdam Gensler <openwrt@a.gnslr.us>
Mon, 6 Jul 2015 23:08:25 +0000 (19:08 -0400)
committerAdam Gensler <openwrt@a.gnslr.us>
Tue, 7 Jul 2015 10:42:47 +0000 (06:42 -0400)
Signed-off-by: Adam Gensler <openwrt@a.gnslr.us>
net/dnscrypt-proxy/Makefile
net/dnscrypt-proxy/files/dnscrypt-proxy.config
net/dnscrypt-proxy/files/dnscrypt-proxy.init

index 32a872185b82a40467f134baac40d78125650ec4..6439e92dc9251f03435e265919c80325e589c0c6 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dnscrypt-proxy
 PKG_VERSION:=1.5.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 d0dbc2d003a71dd7c5d47cfaab976a142b1132a7..63e0e86b72341fc3dcd7d4b75b7ceedd37a6858d 100644 (file)
@@ -3,3 +3,4 @@ config dnscrypt-proxy
        option port '5353'
        # option resolver 'opendns'
        # option resolvers_list '/usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv'
+       # option ephemeral_keys '1'
index 24f29ae2cd3ed4828435b6c83d06aa0128761e92..7c9f58db4b024a8db3231959dbec84ccb31882fd 100644 (file)
@@ -8,12 +8,14 @@ start_instance () {
        config_get port            "$section" 'port'
        config_get resolver        "$section" 'resolver'
        config_get resolvers_list  "$section" 'resolvers_list'
+       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'}
+               -R ${resolver:-'opendns'} \
+               ${ephemeral_keys:+'-E'}
 }
 
 start() {