1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add chacha20 option for glorytun

This commit is contained in:
Ycarus 2018-02-07 18:04:27 +01:00
parent 66624acda7
commit 56fe7f0819
3 changed files with 14 additions and 9 deletions

View file

@ -20,20 +20,21 @@ _err() {
validate_section() {
uci_validate_section glorytun glorytun "${1}" \
'enable:bool:0' \
'key:string' \
'host:host' \
'port:port' \
'proto:string' \
'bind:string' \
'enable:bool:0' \
'key:string' \
'host:host' \
'port:port' \
'proto:string' \
'bind:string' \
'bindport:port' \
'mtu:uinteger:1500' \
'mtu:uinteger:1500' \
'mtuauto:bool:0' \
'chacha20:bool:0' \
'dev:string'
}
start_instance() {
local enable key host port dev listener proto bind bindport mtu mtuauto
local enable key host port dev listener proto bind bindport mtu mtuauto chacha20
validate_section "${1}" || {
_err "validation failed"
@ -63,6 +64,7 @@ start_instance() {
${dev:+dev "$dev"} \
${mtu:+mtu "$mtu"} \
${mtuauto:+mtu-auto} \
${chacha20:+chacha20} \
v4only
procd_set_param respawn 0 30 0