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:
parent
66624acda7
commit
56fe7f0819
3 changed files with 14 additions and 9 deletions
|
@ -27,11 +27,12 @@ validate_section() {
|
|||
'host:host' \
|
||||
'port:port' \
|
||||
'dev:string' \
|
||||
'chacha20:bool:0' \
|
||||
'proto:string'
|
||||
}
|
||||
|
||||
start_instance() {
|
||||
local enable key host port dev listener mptcp proto
|
||||
local enable key host port dev listener mptcp proto chacha20
|
||||
|
||||
validate_section "${1}" || {
|
||||
_err "validation failed"
|
||||
|
@ -57,6 +58,7 @@ start_instance() {
|
|||
${host:+host "$host"} \
|
||||
${listener:+listener} \
|
||||
${mptcp:+mptcp} \
|
||||
${chacha20:+chacha20} \
|
||||
${dev:+dev "$dev"} \
|
||||
retry count -1 const 5000000 \
|
||||
timeout 5000 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue