瀏覽代碼

dnscrypt-proxy: add support for -E/--ephemeral-keys option.

Signed-off-by: Adam Gensler <openwrt@a.gnslr.us>
Adam Gensler 9 年之前
父節點
當前提交
7a0a4144d8

+ 1
- 1
net/dnscrypt-proxy/Makefile 查看文件

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
9 9
 
10 10
 PKG_NAME:=dnscrypt-proxy
11 11
 PKG_VERSION:=1.5.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

+ 1
- 0
net/dnscrypt-proxy/files/dnscrypt-proxy.config 查看文件

@@ -3,3 +3,4 @@ config dnscrypt-proxy
3 3
 	option port '5353'
4 4
 	# option resolver 'opendns'
5 5
 	# option resolvers_list '/usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv'
6
+	# option ephemeral_keys '1'

+ 3
- 1
net/dnscrypt-proxy/files/dnscrypt-proxy.init 查看文件

@@ -8,12 +8,14 @@ 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_bool ephemeral_keys "$section" 'ephemeral_keys'
11 12
 
12 13
 	service_start /usr/sbin/dnscrypt-proxy -d \
13 14
 		-a ${address}:${port} \
14 15
 		-u nobody \
15 16
 		-L ${resolvers_list:-'/usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv'} \
16
-		-R ${resolver:-'opendns'}
17
+		-R ${resolver:-'opendns'} \
18
+		${ephemeral_keys:+'-E'}
17 19
 }
18 20
 
19 21
 start() {